Running Tomcat will be packaged according to WebApp's rules, generating a directory with content, named your project name, and placed inEclipse working directory \.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\Directory. Then tell Tomcat there's webapp, so it can run.
Maven dependencies packaged into/web-inf/lib/sometimes eclipse can get the jar introduced by Maven, but it's not packaged into the/web-inf/lib/directory when it's debugged, and the solution is as follows: Open editProject DirectoryUnder the. ClasspathFile. Here is an example.
<classpathentry kind= "Con" path= "Org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER" ><attributes>< Attribute name= "maven.pomderived" value= "true"/><attribute name= "org.eclipse.jst.component.dependency" value = "/web-inf/lib"/></attributes></classpathentry><!--project the. classpath file specifies the file operations during compilation, build. The jar introduced by Maven can be obtained by eclipse because the configuration statement: <attribute name= "maven.pomderived" value= "true"/> for WebApp projects, To get a dependent jar on the Tomcat runtime, you need to configure: <attribute name= "org.eclipse.jst.component.dependency" value= "/web-inf/lib"/>-- >
The Java version of Eclipse