From 9ecaff68d3af65d701daf627081314bc363ceba1 Mon Sep 17 00:00:00 2001 From: xufenglei <xufenglei> Date: Thu, 02 Nov 2017 17:02:47 +0800 Subject: [PATCH] 配置文件 优化 --- src/main/webapp/WEB-INF/web.xml | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index b094cef..9daf875 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -17,7 +17,7 @@ <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> - <param-value>classpath:application.xml</param-value> + <param-value>classpath:spring/application.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> @@ -76,5 +76,13 @@ <url-pattern>/*</url-pattern> </filter-mapping> + <filter> + <filter-name>springSecurityFilterChain</filter-name> + <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> + </filter> + <filter-mapping> + <filter-name>springSecurityFilterChain</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> </web-app> -- Gitblit v1.8.0