项目的编译项目都在Tomcat的webapps下,项目的访问路径一般为:http://localhost:8080/项目虚拟路径。
但是Tomcat的默认访问页面http://localhost:8080访问到的是Tomcat带猫的的那个页面,要想直接输入本地地址http://localhost:8080就可以得到项目的默认访问页,进行以下配置:
打开tomcat文件夹-->找到conf-->server.xml-->用记事本打开
在<host></host>之间加入代码:
<Context docBase="项目名" path="" debug="0" reloadable="true" />
在doBase处添加,项目路径即可。
重启服务器。