Spring MVC return json only 406 with ContentNegotiationManagerFactoryBean
问题 I want only JSON response to be turned for any request that is made to http://localhost:8090/home/home/home2 for a servlet context as "home". The configuration that I have set is to return default as "JSON" response if there are no accept headers. I have also tried to set the accept type to "application/json" , which is not working. The solution over at Spring MVC + JSON = 406 Not Acceptable is with a different approach of Messageconverter, while I am trying through