Development tools: STS (Spring tool Suite)
To build the SPRINGMVC Maven project, the jar packages used are all pom.xml file configuration dependencies, and MAVEN is automatically downloaded from the repository, so there's no problem with using Tomcat to deploy the release. But sometimes we need to use packages that don't exist in the Maven repository, which we need to configure ourselves.
Right-click the project name->build path->configure build Path->java build Path->add jars/add External JARs, add the required jar package and click OK. After this step, the code compiles without error. But deployment launches Tomcat, the runtime will find that the corresponding jar package has been added, but will still report classnotfound and other errors, this is because Tomcat did not release the jar package just added, Do not believe you can go to the Tomcat deployment location to see (right-click Tomcat,browse Deployment). At this point we need to right click on the project name->build path->configure build path, click Deployment Assembly->add-java build Path Entries, Select the desired jar package, finish. In this way, redeploy the project and start running normally.
Tomcat does not publish the local jar package that the MAVEN project relies on