用maven建立springmvc项目时,所有的依赖包已经添加好,然后出现java.lang.ClassNotFoundException:org.springframework.web.servlet.DispatcherServlet 错误。

解决方法:

 右击项目-->properties-->Deloyment Assembly-->add-->Java Build Path Entries -->导入所有依赖的jar包,restart tomcat。

  解决方法来源于:此链接

 

posted on 2017-03-07 17:34  行走的鸡汤  阅读(234)  评论(0编辑  收藏  举报