java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener in eclipse

前端 未结 5 1300
暖寄归人
暖寄归人 2020-12-09 20:04

I am doing a simple Spring MVC application(not using maven) which will print hello world on browser. It is a dynamic project in eclipse, so I put all the required jar files

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-09 20:25

    It's a dependency problem, some dependencies are missing in the artifact. My solution in IntelliJ:

    Right Click on project name ->open module settings -> problems -> add missing dependencies to the artifact

    Restart the server (my case was tomcat)

    Hope it helps

提交回复
热议问题