Content type ‘application/x-www-form-urlencoded;charset=UTF-8’ not supported解决

vps-under-title.png anjingling.png 1.png 科学上网教程 | 机场推荐 | 本站商务合作

Spring报错:org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported,具体解决办法如下:

@PostMapping( "some/request/path" )
public void someControllerMethod( @RequestParam Map<String, String> body ) {
  //work with Map
}

参数前加@RequestParam。

参考:Content type ‘application/x-www-form-urlencoded;charset=UTF-8’ not supported for @RequestBody MultiValueMap

赞(0)
未经允许禁止转载:优米格 » Content type ‘application/x-www-form-urlencoded;charset=UTF-8’ not supported解决

评论 抢沙发

合作&反馈&投稿

商务合作、问题反馈、投稿,欢迎联系

广告合作侵权联系

登录

找回密码

注册

Ads Blocker Image Powered by Code Help Pro

检测到广告已被屏蔽

您好,系统检测到您使用了广告屏蔽组件。

本网站并不包含任何侵入性广告,我们提供免费的内容,但是需要广告收入来维持运营,还请将本站加入拦截白名单!