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="web" />
<property name="java-output-path" value="/web/target/classes"/>
</wb-module>
Find the sentence marked in red and change the folder directory marked in blue to your The webRoot directory name, you can. If there is no line marked in red, you can add it by yourself. Change /WebContent to /src/main/webapp and change /src to /src/main/java
Eclipse settings point to the /src/main/webapp directory by default
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=327075825&siteId=291194637
Recommended
Ranking