java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 喜欢ヅ旅行 2021-06-24 14:35 353阅读 0赞 使用maven构建多modules工程,在本地eclipse开换环境中,用tomcat启动web项目时一直报错: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 把maven打好的war包放到tomcat里,启动没问题。。。 解决: 1. Open the project's properties (e.g., right-click on the project's name in the project explorer and select "Properties"). 2. Select "Deployment Assembly". 3. Click the "Add..." button on the right margin. 4. Select "Java Build Path Entries" from the menu of Directive Type and click "Next". 5. Select "Maven Dependencies" from the Java Build Path Entries menu and click "Finish". You should see "Maven Dependencies" added to the Web Deployment Assembly definition.
还没有评论,来说两句吧...