如何使springmvc的请求地址url作为参数?
解决方法:
@RequestMapping(
value = {"/systems/{subSystem}/index.html"},
method = {RequestMethod.GET}
)
public ModelAndView subSystemIndex(@PathVariable String subSystem) {
ModelAndView mav = new ModelAndView();
return mav;}
请求例子:http://localhost:18082/systems/process/index.html,此时
subSystem等于process
本文地址:http://www.yayihouse.com/yayishuwu/chapter/1176