Spring MVC报错"Content type 'application/x-www-form-urlencoded' not supported"怎么解决

来源:互联网 发布:2017网络交易管理办法 编辑:程序博客网 时间:2024/06/05 02:24

试着调整你的@RequestMapping来接受JSON.

1
2
3
4
@RequestMapping(
    value="/save",
    method=RequestMethod.POST,
    consumes="application/json")
阅读全文
0 0
原创粉丝点击