A recently developed project has been stored on a mobile hard disk. As a result, the drive letter has changed since multiple devices were found the day before yesterday, so eclipse cannot find the project. Copy the project back to the local disk and re-open it. Run on server directly and prompt classnotfoundexception. Spring applicationcontext cannot be found. Go to % eclipse_workspace % \. Metadata \. plugins \ org. Eclipse. WST. server. Core \ tmp1 \ wtpwebapps \ MyApp \ and check that there is no lib directory under the WEB-INF. Check that the build path of the Project is correct. Finally, Google found an answer on stackoverflow:
Http://stackoverflow.com/questions/6083501/maven-dependencies-not-visible-in-web-inf-lib
I solve the problem in the third way:
Right-click Project Properties and choose "deployment assembly"> "add"> JAVA build path entries> "Maven dependecies". Save the settings and run on server again.