84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
SpringMVC使用@RequestBody注解接收jsonArray 页面报415错误 怎么解决
人生最曼妙的风景,竟是内心的淡定与从容!
http://stackoverflow.com/ques...不知道可以不可以。
代码配置贴出来看看,ajax调用部分,和spring 注解和xml
415 请求接收不匹配, 查看前端请求方法和content type
如果你前端用的jqurey的话,默认请求数据不是以json格式发送的,你需要在$.ajax对象中添加contentType: "application/json; charset=utf-8",
contentType: "application/json; charset=utf-8",
http://stackoverflow.com/ques...
不知道可以不可以。
代码配置贴出来看看,ajax调用部分,和spring 注解和xml
415 请求接收不匹配, 查看前端请求方法和content type
如果你前端用的jqurey的话,默认请求数据不是以json格式发送的,你需要在$.ajax对象中添加
contentType: "application/json; charset=utf-8",