spring mvc 配置(xml配置詳解)
阿新 • • 發佈:2019-02-18
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<servlet>
<servlet-name>dispatcher</servlet-name>
<servlet- class >org.springframework.web.servlet.DispatcherServlet</servlet- class >
<init-param>
<description>載入/WEB-INF/spring-mvc/目錄下的所有XML作為Spring
MVC的配置檔案</description>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring-mvc/*.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup> </servlet>
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
<?xml
version= "1.0"
encoding= "UTF-8" ?>
xsi:schemaLocation="http: //www.springframework.org/schema/beans
http: //www.springframework.org/schema/beans/spring-beans-3.0.xsd
http:
|