Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content-Type 'application/json;charset=UTF-8' is not supported]
时间: 2023-10-23 08:45:42 浏览: 265
Maven报错: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources
This error occurs when the server is unable to process the request because the Content-Type header of the request is not supported. In this case, the Content-Type header is 'application/json;charset=UTF-8'.
To resolve this error, you can try the following:
1. Verify that the server supports the Content-Type header specified in the request. If the server does not support the Content-Type header, you can change it to a supported type.
2. Check if the Content-Type header is correctly spelled and formatted in the request.
3. If you are using a client library or framework to make the request, ensure that it is properly configured to send the correct Content-Type header.
4. If none of the above solutions work, you can try using a different Content-Type header that is supported by the server.
阅读全文