Spring Boot接收请求时出现 Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported

Spring Boot接收请求时出现 Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported_第1张图片

 因为数据库里面没有设置json格式,所有会报错,可以将@RequestBody删了,或者改为@RequestParam

你可能感兴趣的:(spring,boot,java,后端)