转载来自:http://blog.sina.com.cn/s/blog_8ced01900101ba3f.html
在maven webApp中,启动服务器出现java.lang.ClassNotFoundException:org.springframework.web.filter.CharacterEncodingFilter;或者ava.lang.ClassNotFoundException:org.springframework.web.servlet.DispatcherServlet。
而事实情况是,类确实存在,处理方式是:
1.
Right click the web project “properties” -------> click the “Deployment Assembly” ---->
Click add button
Choose Java Build Path Entires ---> click Next
Choose Maven Dependencies------>
2.
Choose Project-----> Click Next button
Choose your dependencies project -----> Click Finish button
That’s ok!