Quickstart

Start setting up a Spring-MVC application base first.

Further Information:

The easiest way to configure Spring-Json View as a bean is to register a XmlViewResolver.

See the [ Demo application] for a complete illustration.

Spring ApplicationContext

<beans>
    [...]
    <bean name="viewResolver" 
        class="org.springframework.web.servlet.view.XmlViewResolver" />
    [...]
</beans>

Spring view.xml

<beans>
    <bean name="jsonView" class="org.springframework.web.servlet.view.json.JsonView"/>
</beans>