项目场景:
尚硅谷书城项目
问题描述
Tomcat服务器启动失败
07-Jan-2023 16:20:34.817 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
07-Jan-2023 16:20:34.817 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/book] startup failed due to previous errors
原因分析:
Filter中init和destroy没有清除默认操作
解决方案:
一定要清除默认操作Filter.super.init(filterConfig)和Filter.super.destroy();