webContet改成webRoot
打开项目根目录下.setting 文件夹下的 org.eclipse.wst.common.component文件 ,用记事本打开,
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0"> <wb-module deploy-name="Fashion"> <wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/> <property name="context-root" value="Fashion"/> <property name="java-output-path" value="/Fashion/WebRoot/WEB-INF/classes"/> </wb-module></project-modules>