tomcat startup error: java.lang.ClassNotFoundException: org.springframework.web.context.Con

tomcat startup error: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

reason:

If you are a maven project, tomcat does not release the jar package added by the maven dependency when publishing the project.

solution:

You need to set up eclipse:

Project -> Properties -> Deployment Assembly -> Add -> Java Build Path Entries -> select Maven Dependencies -> Finish -> OK

Publish the corresponding Maven dependency package to tomcat, and those jars will be automatically published to the specified directory during debugging, and tomcat can also find those jars.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327027938&siteId=291194637