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"
/>
在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"
/>
相关文章推荐
- Tomcat的安装与配置
- Tomcat7的下载及安装
- 解决tomcat启动Socket监听端口死循环被hold问题
- 解决tomcat启动Socket监听端口死循环被hold问题
- 同一Tomcat 多个端口部署不同的项目
- 将tomcat web项目图片文件资源放在非项目路径下
- tomcat7-maven-plugin插件把web应用一键式的部署到一个远程的tomcat中
- 将eclipse上的web项目部署到Tomcat服务器上经验总结
- Resource specification not allowed here for source level below 1.7
- Centos6.5下搭建Tomcat
- tomcat结合nginx使用小结
- 安装配置tomcat的步骤
- Tomcat安装与使用
- 在阿里云ECS(CentOS6.5)上部署tomcat和mysql
- 出现错误:Unable to load configuration. - action - file:/E:/Java/Tomcat7.0/apache-tomcat-7.0.68-windows-x64/apache-tomcat-7.0.68/webapps/SSH2Integrate/WEB-INF/classes/struts.xml:8:43
- tomcat启动正常,但是项目无法访问
- 设置tomcat启动超时,不会自动停止
- Tomcat5.5配置-多域名绑定和虚拟目录
- Tomcat 重启服务器启动脚本
- 本地测试web项目部署到服务器空间出错