1.修改项目文件夹中的.project文件 2.修改.setting文件夹中的org.eclipse.wst.common.component文件 3.右键项目选择properties,修改Web Project Settings中的Context root 4.重新把项目添加到Tomcat