[JAVA] "ClassNotFoundException" is displayed when tomcat is started in eclipse and cannot be started

As the title says, when I started tomcat in eclipse, "ClassNotFoundException" was displayed and it did not start I got stuck for about half a day, so make a note.

● Recreate maven local repository

  • Basically, if there is no repository folder in the .m2 folder, it will be recreated when the project is updated. It is OK if you delete the repository folder once by the following procedure.
  1. Close Eclipse. (Because if it is left running, the following steps may fail while grabbing the files in the local repository) Move to the
  2. .m2 folder. (Usually, it should be under the "C: / Users / {UserName} /" folder.)
  3. Delete the repository folder. (You can just move it to another location or rename it)
  4. Start Eclipse.
  5. Alt + F5 (Maven Update Project. * It will take some time because the above repository folder will be recreated and the necessary jar files will be downloaded)
  6. Start Tomcat.

Recommended Posts