There is a PathVariable thing in the latest spring3. Its main purpose is to extract the path variables contained in the RequestMapping url. Currently, it is mostly used to provide pseudo-static page urls. For example:
@RequestMapping("/login/{loginId}.htm")
public String login(@PathVariable("loginId")Long loginId, ModelMap model){
...
}
The loginId in the above example is completely variable. You can dynamically configure the background login address by configuring this loginId in the background.
There is a
PathVariable
thing in the latest spring3. Its main purpose is to extract the path variables contained in theRequestMapping
url. Currently, it is mostly used to provide pseudo-static page urls. For example:The loginId in the above example is completely variable. You can dynamically configure the background login address by configuring this loginId in the background.