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.
<beans>
[...]
<bean name="viewResolver"
class="org.springframework.web.servlet.view.XmlViewResolver" />
[...]
</beans>
<beans>
<bean name="jsonView" class="org.springframework.web.servlet.view.json.JsonView"/>
</beans>