Invalid mime type "application/json, application/json": Invalid token chara

时间:2024-03-14 09:17:49

org.springframework.util.InvalidMimeTypeException: Invalid mime type “application/json, application/json”: Invalid token character ‘,’ in token “json, application/json”
报此等错误,请检查:
{“application/json;charset=utf-8”}是否写正确
Invalid mime type "application/json, application/json": Invalid token chara
Invalid mime type "application/json, application/json": Invalid token chara
将Spring-web更改一下即可
Invalid mime type "application/json, application/json": Invalid token chara
修改后即可:
Invalid mime type "application/json, application/json": Invalid token chara
Invalid mime type "application/json, application/json": Invalid token chara
Invalid mime type "application/json, application/json": Invalid token chara
Invalid mime type "application/json, application/json": Invalid token chara
Invalid mime type "application/json, application/json": Invalid token chara