1.Tomcat启动,部署工件失败
原因:没添加lib目录
解决:使用SpringMVC,添加Web支持,要将项目结构进行添加WEB-INF下添加lib目录,将依赖添进去
2.过滤器java.lang.ClassNotFoundException: org.springframework.web.filter.CharacterEncodingFilter
解决:添加以下依赖并配置进lib
<!-- https://mvnrepository.com/artifact/org.springframework/spring-web -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>4.0.6.RELEASE</version>
</dependency>