在tomcat的conf的下面的server.xml里面,定义:<Context path="" docBase="LehearHelp" debug="0" reloadable="false"></Context>,即可实现不依赖项目名。