In the practice of spring MVC, many people may encounter this annoying problem, it took a long time to solve, the code is right, but he just reported an error
content type ‘application/JSON’ not supported
I have found many articles on the Internet and used many methods, but they can’t solve this problem
finally, I remembered if I didn’t add the jar package required by JSON in lib, so I tried it… It was a success indeed
the following is my method
because I have added it, so here you can see that there are three jar packages in my lib package,
just add these three packages~~~
Read More:
- Springcloud Feign Upload MultipartFile Error: Current req is not a multipart request Content type not supported
- About content type ‘multipart / form data…’ not support
- Object of type timestamp is not JSON serializable
- 【ipfs-api】npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
- Type error: the JSON object must be STR, bytes or byte array, not ‘textiowrapper’
- Element ‘dependency‘ cannot have character [children], because the type‘s content type is element-on
- Refused to apply style from <URL> because its MIME type (‘text/html‘) is not a supported stylesheet
- Solve the problem of using the default content type of JMeter
- Access restriction: the type ‘application’ is not API (restriction on required LIB)
- (springmvc) Failed to load resource: the server responded with a status of 404 (Not Found)
- An error is reported in the compiler require of laravel: installation failed, reversing/ composer.json to its original content.
- Code signing is required for product type ‘application’ in SDK ‘IOS 10.3’
- Error type referred to is not an annotation type:RedisCache
- Python json.dumps () json.dump The difference between ()
- Error: property ‘TZ’ does not exist on type ‘type of moment’
- WCF-HTTP Error 404.17 – Not Found, The requested content appears to be script and will not be served…
- [jQuery] jQuery operates on JSON strings or JSON objects
- The Excel connection manager is not supported in the 64-bit version of SSIS [Switch]
- The key “target densitydpi” is not supported