Spring MVC Example

Spring MVC Example Git Source Tree

Root/src/main/webapp/WEB-INF/config/webmvc-config.xml

1<?xml version="1.0" encoding="UTF-8"?>
2<beans xmlns="http://www.springframework.org/schema/beans"
3    xmlns:mvc="http://www.springframework.org/schema/mvc"
4    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5    xsi:schemaLocation="
6        http://www.springframework.org/schema/beans
7        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
8        http://www.springframework.org/schema/mvc
9        http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
10
11    <mvc:annotation-driven />
12
13    <bean id="viewResolver"
14        class="org.springframework.web.servlet.view.InternalResourceViewResolver">
15        <property name="viewClass"
16            value="org.springframework.web.servlet.view.JstlView" />
17        <property name="prefix" value="/WEB-INF/view/" />
18        <property name="suffix" value=".jsp" />
19    </bean>
20
21</beans>
22

Archive Download this file

Branches