SpringMVC的@RequestParam注解与@RequestBoby注解接收参数有啥区别?
出现Content type ‘application/x-www-form-urlencoded;charset=UTF-8’ not supported错误,是前后端数据交互出现json数据类型不符合。
此种情况为前端与后端json格式不统一导致
1.json 分为两种类型;
(1) json 对象类型,即前端定义的Content type 为 application/x-www-form-urlencoded等
(2) json字符串类型,即前端定义的Content type 为 applicatio
原创
2021-11-23 14:20:15 ·
122 阅读 ·
0 评论