解决方法:注解时value改成name,此外method要加一个GET配置
@RequestMapping(name = "login.do", method = {RequestMethod.POST, RequestMethod.GET})
因为name只能定义一个,所以可以分开实现GET和POST,如
1.
@RequestMapping(value = "login.do", method = RequestMethod.GET)2.@RequestMapping(value = "login.do", method = RequestMethod.POST)
3612

被折叠的 条评论
为什么被折叠?



