在web-xml和spring-security.xml配置文件未出错的情况下,tomcat7启动没问题,tomcat8启动报错Exception starting filter springSecurityFilterChain,猜想是环境问题版本冲突导致,在父工程和子模块都加
slf4j-api 依赖即解决问题。
报错如图:
解决方法:
加入依赖:
<dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.25</version> </dependency>
(不用登入就可以复制)
完美解决问题
如果对你有帮助的话,麻烦电子N