Http://stackoverflow.com/questions/7841770/optional-path-variables-in-spring-mvc-requestmapping-uritemplate
Today asynchronous updates are made with Ajax and SPRINGMVC. Because the URI after the page jump is dynamically generated,/project/{depid}/{groid}/{projid}, and the URI in Ajax is either/project/{depid}/{groid}/{projid}/ Method.html or method.html, cannot map to the corresponding method in controller. It was later found that the following method,--**--, could match all the URIs ending with methods.
@RequestMapping (value = "/{first}/**/{last}", method = requestmethod.get) public
String test (@PathVariable (" ") string A, @PathVariable (" Last ")
string last) {}
Which for the following URIs:
Foo/a/b/c/d/e/f/g/h/bar
Foo/a/bar
Foo/bar
Later, the classmate told me that similar situation to the controller in the requestmapping to/project/{depid}/{groid}/method can also be used, waiting for me to verify later.