两种方式: 将项目内容放到Root文件夹下;修改server.xml文件,找到Host标签,在其中加入,“/Test”表示Test在webapps文件夹下 <Context path="" docBase="/Test" reloadable="false"/>