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

前端 未结 1 870
有刺的猬
有刺的猬 2020-12-03 12:30

Not sure why am I getting this error. Lots of similar questions here but none have worked for me till now.

My ivy file is



        
相关标签:
1条回答
  • 2020-12-03 13:28

    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.

    enter image description here

    • Now select Add and select Java build path entries.

    enter image description here

    • Ivy option is automatically populated. Select that.

    enter image description here

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

    enter image description here

    0 讨论(0)
提交回复
热议问题