Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (28 sloc) 1.65 KB
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""
<!-- Configures the @Controller programming model -->
<mvc:annotation-driven />
<!-- Scans for @Components, @Service, @Controller, ... -->
<context:component-scan base-package="org.obliquid.restjson.web" />
<!-- Forwards requests to the "/" resource to the "home" view -->
<mvc:view-controller path="/" view-name="home"/>
<!-- Resolve views based on string names -->
<!-- <bean class="org.springframework.web.servlet.view.BeanNameViewResolver" /> -->
<!-- json view, capable of converting any POJO to json format -->
<bean name="jsonView" class="org.springframework.web.servlet.view.json.MappingJacksonJsonView"/>
<!-- Resolves view names to protected .jsp resources within the /WEB-INF/views directory -->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/jsp/"/>
<property name="suffix" value=".jsp"/>
Something went wrong with that request. Please try again.