开始 controller 方法写的是 app
@RequestMapping( value = "/add", method = RequestMethod.POST )ui
public String add( @RequestBody Map<String, Object> params ) { url
报错 Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported.net
改为code
@RequestMapping( value = "/add", method = RequestMethod.POST )orm
public String add( @RequestParam Map<String, Object> params ) {blog
就不报错了。
---------------------
做者:guile
来源:CSDN
原文:https://blog.csdn.net/beguile/article/details/80460957
版权声明:本文为博主原创文章,转载请附上博文连接!io