Problem:
Create a spring Web project using MAVEN, and then error after debug:
..... ClassNotFoundException:org.springframework.web.context.ContextLoaderListener ...,
The context cannot be found, that is, it may not have been partially compiled, and it is possible that all jars have not been compiled. Try to find the Tomcat compiled directory, look at the compiled file, and sure enough, there are no jar packages introduced. So the status quo is: The project maven dependencies is a jar package, but the compile time is not compiled . Check Publishing resources: Deployment assemmbly, found that there is no Maven dependencies, so add it, here are the steps to resolve:
- Right-click the project
- Select Properties
- Search Deployment Assembly
- Click Add
- Java Build Path entries
- Maven Dependencies
The Eclipse Maven managed web development, the jar package does not compile the problem