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"
/>
本文探讨了Spring Boot项目中使用Spring Security时遇到的配置冲突问题,具体表现为无法同时配置'AbstractSecurityWebApplicationInitializer'类和'@EnableWebSecurity'注解。文章还提供了关于如何调整Tomcat缓存设置来解决问题的方法。
1万+

被折叠的 条评论
为什么被折叠?



