For past few days I'm working on this issue, After upgrade of spring framework from 4.x to 5.x I got this error in browser Failed to load resource: the server responded with a status of 500 ()
and In Intellij I got this Exception like
Resolved [org.springframework.http.converter.HttpMessageNotWritableException: No converter with preset Content-Type 'text/html']
after a lot of debugging and research, I didn't found any solution, I'm sending JSON response from my java method which is correct. and working fine in older spring versions,if someone has suggestions or faced such issue feel free to response
Thank you.
question from:https://stackoverflow.com/questions/66061860/jquery-ajax-status-500-after-spring-framework-upgraded-to-5-x