您的位置:首页 > 运维架构 > Tomcat

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

2016-06-03 22:57 597 查看
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"

   />
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: