“Content type 'application/json;charset=UTF-8' not supported” in Spring Rest application
问题 When I do a POST request on localhost:8080/api/users to create a new user I get the following error : { "timestamp": "2018-05-28T09:44:55.704+0000", "status": 415, "error": "Unsupported Media Type", "message": "Content type 'application/json;charset=UTF-8' not supported", "path": "/api/users/" } The is the request's body, JSON(application/json) is selected. It gives the same error even if I remove the Roles and keep it null. The header's content type is application/json as well. This is my