java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet error

一个人想着一个人 提交于 2019-11-27 14:31:22

Thanks a lot guys for your valuable comments. You are all right. Jar files must be in WEB-INF/lib. Or you can tell Eclipse that it can find the jars in additional location and not just WEB-INF/lib.

How do we do that?

  • Right click the project and select properties. Now go to Deployment Assembly.

  • Now select Add and select Java build path entries.

  • Ivy option is automatically populated. Select that.

  • And you are done.Select Apply and ok. Classnotfound Exception vanishes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!