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.