Eclipse publishes the maven project to the built-in server and fails to start

Publish the maven project to the built-in tomcat server of eclipse,

 

Startup error:

严重: Error configuring application listener of class org.springframework.web.context.ContextLoader

Looking at the log, I can't find a dependent class, but I have configured the dependency in the pom file for this class, why can't I find it, and later found the reason, that the referenced class was not published to the tomcat server.

 

Reason for error:

The package that maven depends on is not published to the server, so the package cannot be found by running

 

 

Solution:

Right-click the project--->properties--->Deployment Assembly--->Add--->Select Java Build Path Entries Next---Select maven Dependencies

Guess you like

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