1、在eclipse中运行web项目的时候出现如下异常:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

3、右击项目properties

5、点击Add,然后选中Java Build Path Entries

7、点击完成,这样就可以解决上述错误。删除掉tomcat配置,重新配置tomcat

时间:2024-10-12 01:07:40
1、在eclipse中运行web项目的时候出现如下异常:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
3、右击项目properties
5、点击Add,然后选中Java Build Path Entries
7、点击完成,这样就可以解决上述错误。删除掉tomcat配置,重新配置tomcat