springboot tomcat8 duplicate springSecurityFilterChain and increasing the maximum size of the cache

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

    WEB-INF/web.xml
    ${catalina.base}/conf/web.xml
            cachingAllowed="true"
        cacheMaxSize="100000"
   />

你可能感兴趣的:(springboot tomcat8 duplicate springSecurityFilterChain and increasing the maximum size of the cache)