ssm项目中,用ajax请求后台数据,同一个controller中,同一个jsp页面,有几个function中的ajax请求成功,有的请求失败,后台的日志中是Did not find handler method for [/xxx.controller]
Did not find handler method for [/xxx.controller] 这个情况的时候是不是 ajax 请求响应是404 了呢?
说明这个请求的URL 并没有对应的Controller 中的方法与之对应。
1.看看@RequestMapping() 是不是与你请求一致
2.看看请求的 type是不是与你controller方法一致