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。
最新评论
喵影视TV,目前,最好用的吧,没有广告
已经死了这个app
大哥 求求
一个人用就够,多人钱包伤不起啊