You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<?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"
|
|
|
|
|
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.xsd">
|
|
|
|
|
|
|
|
|
|
<!-- SpringMVC的配置文件,包含网站跳转逻辑的控制,配置 -->
|
|
|
|
|
<!-- <context:component-scan base-package="com.emr" use-default-filters="false">
|
|
|
|
|
<!– 只扫描控制器 –>
|
|
|
|
|
<context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
|
|
|
|
|
</context:component-scan>-->
|
|
|
|
|
<mvc:annotation-driven/>
|
|
|
|
|
<context:component-scan base-package="com.emr.controller"/>
|
|
|
|
|
<!-- 静态资源映射 -->
|
|
|
|
|
<!--<mvc:resources location="/static/" mapping="/static/**" />-->
|
|
|
|
|
<!-- 当上面要访问的静态资源不包括在上面的配置中时,则根据此配置来访问 -->
|
|
|
|
|
<!--<mvc:default-servlet-handler />-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--配置视图解析器,方便页面返回 -->
|
|
|
|
|
<bean id="jspViewResolver"
|
|
|
|
|
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
|
|
|
|
<property name="prefix" value="/WEB-INF/views/" />
|
|
|
|
|
<property name="suffix" value=".jsp" />
|
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
|
|
</beans>
|