标签:can context dap request ice 开启 map name drive
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd">
<!-- 开启注解扫描 -->
<context:component-scan base-package="cn.itcast" />
<!-- 视图解析器对象 -->
<bean id="internalResourceView" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/pages/" />
<property name="suffix" value=".jsp" />
</bean>
<!-- 开启SpringMVC框架注解的支持,相当于
自动加载 RequestMappingHandlerMapping (处理映射器)
和 RequestMappingHandlerAdapter ( 处 理 适 配 器 )
-->
<mvc:annotation-driven conversion-service="conversionService" />
</beans>
标签:can context dap request ice 开启 map name drive
原文地址:https://www.cnblogs.com/jock766/p/13289656.html