问题
11-Dec-2020 13:47:02.713 警告 [http-nio-8080-exec-9] org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver.logException Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type ‘application/json;charset=UTF-8’ not supported]
解决方法
这是因为没有引入jackson或者ajax请求的contentType属性没有写对。