【SpringMVC】Marking servlet dispatcherServlet as unavailable org.apache.catalina.core.StandardContext.loadOnStartup Servlet [springDispatcherServlet] in web application [] threw load() exception

时间:2017-08-16 20:21:48   收藏:0   阅读:1773

Marking servlet dispatcherServlet as unavailable  

org.apache.catalina.core.StandardContext.loadOnStartup Servlet [springDispatcherServlet] in web application [] threw load() exception Java.lang.ClassNotFoundException:

org.springframework.web.servlet.DispatcherServlet

除过jar包不存在外, 还有这种可能:

技术分享技术分享

注:两种方式均已将jar包add buildpath

采用第一种存放jar包方式时,会出现以上java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet异常,浏览器中表现为404,改为第二种方式则正确运行。

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!