提交 2eb0009d 编写于 作者: 刘兴

去掉欢迎页面

上级 fc746f53
......@@ -3,62 +3,58 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
version="4.0">
<!--欢迎页面-->
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
<!-- <display-name>Archetype Created Web Application</display-name>-->
<!-- 监听应用的启动和销毁-->
<!-- 应用域的初始化参数,名值对-->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<!-- 这里配置listener监听web服务器启动我们的应用,spring IOC容器将在此时创建-->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>dispatcherServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<!-- dispatcherServlet加载springIOC容器-->
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-mvc.xml</param-value>
</init-param>
<!-- 1意味着web容器加载时,即加载dispatcherServlet-->
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dispatcherServlet</servlet-name>
<!-- / 表明该DispatcherServlet拦截所有的url,除了.jsp结尾的
如果配置为/* 拦截所有的url,包括.jsp-->
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- 解决中文乱码问题-->
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<!-- encoding参数名固定的,值配置为编码格式-->
<param-name>encoding</param-name>
<param-value>utf-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<!-- 对所有的url进行过滤 -->
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- 配置shiro的过滤器 (的代理)
代理的是IOC容器具有过滤功能的bean
过滤器的名称为 IOC容器中具有过滤功能的bean的id-->
<filter>
<filter-name>shiroFilter</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>shiroFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- <display-name>Archetype Created Web Application</display-name>-->
<!-- 监听应用的启动和销毁-->
<!-- 应用域的初始化参数,名值对-->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<!-- 这里配置listener监听web服务器启动我们的应用,spring IOC容器将在此时创建-->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>dispatcherServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<!-- dispatcherServlet加载springIOC容器-->
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-mvc.xml</param-value>
</init-param>
<!-- 1意味着web容器加载时,即加载dispatcherServlet-->
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dispatcherServlet</servlet-name>
<!-- / 表明该DispatcherServlet拦截所有的url,除了.jsp结尾的
如果配置为/* 拦截所有的url,包括.jsp-->
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- 解决中文乱码问题-->
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<!-- encoding参数名固定的,值配置为编码格式-->
<param-name>encoding</param-name>
<param-value>utf-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<!-- 对所有的url进行过滤 -->
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- 配置shiro的过滤器 (的代理)
代理的是IOC容器具有过滤功能的bean
过滤器的名称为 IOC容器中具有过滤功能的bean的id-->
<filter>
<filter-name>shiroFilter</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>shiroFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册