1:修改项目目录下:.project文件
<?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>GZELearning</name>
2:项目右键属性 --> Web Project Settings --> Context root
3:修改项目目录下:.settingsorg.eclipse.wst.common.component
<?xml version="1.0" encoding="UTF-8"?> <project-modules id="moduleCoreId" project-version="1.5.0"> <wb-module deploy-name="llc"> <wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/> <property name="java-output-path" value="/webcar/WebContent/WEB-INF/classes"/> <property name="context-root" value="llc"/> </wb-module> </project-modules>