开始 controller 方法写的是   

    @RequestMapping( value = "/add", method = RequestMethod.POST )

    public String add( @RequestBody Map<String, Object> params ) {  

报错 Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported

改成

    @RequestMapping( value = "/add", method = RequestMethod.POST )

    public String add( @RequestParam Map<String, Object> params ) {

就不报错了。
---------------------
作者:guile
来源:CSDN
原文:https://blog.csdn.net/beguile/article/details/80460957
版权声明:本文为博主原创文章,转载请附上博文链接!

相关文章:

  • 2021-12-12
  • 2022-01-01
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
猜你喜欢
  • 2021-08-30
  • 2022-12-23
  • 2021-04-16
  • 2022-01-29
相关资源
相似解决方案