修改server.xml文件 添加<Context path="指定项目名(/testProject)" docBase="项目部署位置(/test/webapps/testProject)"> </Context>.如下: