|
@@ -8,20 +8,15 @@
|
8
|
8
|
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
|
9
|
9
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
|
10
|
10
|
">
|
11
|
|
-
|
12
|
11
|
<!--1、mvc注解驱动-->
|
13
|
12
|
<mvc:annotation-driven/>
|
14
|
|
-
|
15
|
13
|
<!--2、配置视图解析器-->
|
16
|
14
|
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
17
|
15
|
<property name="prefix" value="/pages/"/>
|
18
|
16
|
<property name="suffix" value=".jsp"/>
|
19
|
17
|
</bean>
|
20
|
|
-
|
21
|
18
|
<!--3、静态资源权限开放-->
|
22
|
19
|
<mvc:default-servlet-handler/>
|
23
|
|
-
|
24
|
20
|
<!--4、组件扫描 扫描Controller-->
|
25
|
|
- <context:component-scan base-package="com.itheima.controller"/>
|
26
|
|
-
|
|
21
|
+ <context:component-scan base-package="com.controller"/>
|
27
|
22
|
</beans>
|