springboot tomcat8 duplicate springSecurityFilterChain and increasing the maximum size of the cache
阿新 • • 發佈:2019-01-23
1、springSecurityFilterChain'. Check to ensure the Filter is only configured once.
在pringboot中不能同時存在
public class MessageSecurityWebApplicationInitializer extends AbstractSecurityWebApplicationInitializer {
}
和 @EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter{ 類
to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
在tomcat的context.xml中增加Resources cachingAllowed
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
<Resources
cachingAllowed="true"
cacheMaxSize="100000"
/>