1. Change the configuration file, open the org.eclipse.wst.common.component file in the .setting folder, open it with Notepad,
<wb-module deploy-name="AMS"> <wb-resource deploy-path="/" source-path="/ WebContent "/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/> <property name="context-root" value="AMS"/> <property name="java-output-path" value="/AMS/ WebContent /WEB-INF/classes"/> </wb-module>
Change the folder directory of source-path to your webRoot directory name, and that 's it.
2. At the same time, copy the .jsdtscope file
<classpathentry kind="src" path=" WebContent "/>
Synchronously changed to be consistent with the source-path above