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。
最新评论
大佬用了魔法还是用不了,无互联网访问
地址挂了
如果不用魔法是不是下载了也看不了
请问大佬能推荐渠道么 十分感恩