Maj informations
This commit is contained in:
@@ -9,23 +9,23 @@
|
||||
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 -->
|
||||
<!-- 把标记了@Controller bean -->
|
||||
<context:component-scan base-package="com.eshop.controller">
|
||||
</context:component-scan>
|
||||
|
||||
<!-- ViewResolver Servlet、JSP视图解析-->
|
||||
<!-- 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>
|
||||
|
||||
Reference in New Issue
Block a user