eshop/web/WEB-INF/springMVC.xml

37 lines
1.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd">
<!-- -->
<mvc:default-servlet-handler/>
<mvc:annotation-driven/>
<!-- Controller bean -->
<context:component-scan base-package="com.eshop.controller">
</context:component-scan>
<!-- ViewResolver Servlet、JSP-->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
<property name="prefix" value="/"/>
<property name="suffix" value=".jsp"/>
</bean>
<!--
<mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="/preAddFilm"/>
<mvc:mapping path="/addFilm"/>
<bean class="com.eshop.interceptor.AuthInterceptor"></bean>
</mvc:interceptor>
</mvc:interceptors>-->
</beans>