Tomcat 启动过滤器异常

严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.filterStart 启动过滤器异常
java.lang.ClassNotFoundException: org.springframework.web.filter.CharacterEncodingFilter

查看版本

解决方案:

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
         version="3.1">```

### 查看包

tomcat 8.5版本只支持web 3.x ,目前只有tomcat 9.0 版本支持 4.0 这里需要注意..

如果还会出错,需要看WEB-INF/lib 中是否将jar包加入了

![](https://img2020.cnblogs.com/blog/1778360/202003/1778360-20200320191624835-1550210045.png)
posted @ 2020-03-20 18:57  JakePrim  阅读(11373)  评论(0)    收藏  举报