ContentNegotiatingViewResolver does not resolve views itself but delegates them to other view resolvers based on the request. Now, let's add the content negotiation capability to our application:
pom.xml; you can find
pom.xmlunder the project root directory itself.
pom.xmlfile. Select the Dependencies tab and click on the Add button of the Dependencies section.
org.springframework, Artifact Id as
spring-oxm, Version as
4.0.3.RELEASE; select Scope as compile; and then click on the OK button.
org.codehaus.jackson, Artifact Id as ...