SpringMVC的MAVEN项目报错ClassNotFoundException

maven中已经引入了springmvc相关jar包,在启动tomcat的时候报错 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

解决办法:

1. 项目上右键,选择Properties

2. 选择Deployment Assembly

3. 点击Add按钮

4. 选择Java Build path Enries

5. 选择Maven Dependencies

搞定!

猜你喜欢

转载自mcj8089.iteye.com/blog/2284771