method
有两个赋值:RequestMethod.GET和RequestMethod.POST
@RequestMapping(value = "other.do",method= RequestMethod.POST)
@RequestMapping(value = "some.do",method= RequestMethod.GET)
value值一定要和index.jsp里的值一样,本人因为一个斜杠卡了两个小时
method
有两个赋值:RequestMethod.GET和RequestMethod.POST
@RequestMapping(value = "other.do",method= RequestMethod.POST)
@RequestMapping(value = "some.do",method= RequestMethod.GET)
value值一定要和index.jsp里的值一样,本人因为一个斜杠卡了两个小时