启动tomcat 不用加项目名

只需要将server.xml文件<host>节点里面加入上面的内容  docBase="这是你的项目名"</host> 保存退出即可

原文地址:https://www.cnblogs.com/goodboy321/p/9922462.html