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.