1. 程式人生 > >項目的配置文件-web.xml

項目的配置文件-web.xml

splay patch con springmvc att .html ont size log

web.xml

<?xml version="1.0" encoding="utf-8">
<web-app ......>
<welcome-file-list>
<welcome-file>/pages/login.html<welcome-file>
</welcome-file-list>
<display-name>etrcuk</display-name>
<description>general-portal</description>
<context-param>


<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-context.xml</param-value>
</context-param>
<listener>
<listener-class>org...ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>springMVC<servlet-name>

<servlet-class>org...DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-context</param-vlaue>
</init-param>
<load-on-startup>1</load-on-startup>

</servlet>
<servlet-mapping>
<servlet-name>springMVC<servlet-name>
<url-pattern>/web/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>CXFServlet<servlet-name>
<servlet-class>org...CXFServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CXFServlet<servlet-name>
<url-pattern>/services/*</url-pattern>
<servlet-mapping>
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org...CharacterEncodingFilter</filter-class>
<!--
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-vlaue>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-vlaue>
</init-param>-->
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
<filter-mapping>
<filter>
<filter-name>shiroFilter</filter-name>
<filter-class>org...DelegatingFilterProxy</filter-class>
<init-param>
<param-name>targetFilterLifecycle</param-name>
<param-value>true</param-vlaue>
</init-param>
</filter>
<filter-mapping>
<filter-name>shiroFilter</filter-name>
<url-pattern>/*</url-pattern>
<filter-mapping>
</web-app>

項目的配置文件-web.xml