27 lines
1014 B
XML
27 lines
1014 B
XML
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/mvc
|
|
http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd
|
|
http://www.springframework.org/schema/context
|
|
http://www.springframework.org/schema/context/spring-context-4.1.xsd
|
|
http://www.springframework.org/schema/beans
|
|
http://www.springframework.org/schema/beans/spring-beans-4.1.xsd">
|
|
|
|
<context:component-scan base-package="controller" />
|
|
|
|
<bean
|
|
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
|
<property name="prefix">
|
|
<value>/WEB-INF/views/jsp/</value>
|
|
</property>
|
|
<property name="suffix">
|
|
<value>.jsp</value>
|
|
</property>
|
|
</bean>
|
|
|
|
<mvc:resources mapping="/resources/**" location="/resources/" />
|
|
|
|
<mvc:annotation-driven />
|
|
|
|
</beans> |