@PathVariable equivalent for Spring 2.5

安稳与你 提交于 2020-01-03 04:39:08

问题


I am working on some legacy code running Spring 2.5. I need to use something similar to Spring 3's @PathVariable...anything similar available in Spring 2.5?


回答1:


The closest you'll probably get is through ant-style wildcards in mapping paths. You will then have to parse the path manually in your method to get the variable value, I guess.



来源:https://stackoverflow.com/questions/7850286/pathvariable-equivalent-for-spring-2-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!