现在访问80端口后面会自动默认一个项目如图
确实是找不到,因为已经把他删了。
刚刚开始以为是配置文件设置了默认访问该页面,查询了没有相关设置
原来项目所在的路径
问下各位大佬 是什么原因让他一直访问这个项目呢,要怎么解决。
在tomcat的server.xml文件中,看以下代码中是不是设置了<Content path='yunhis' 之类的,去掉就行了
<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t "%r" %s %b" prefix="localhost_access_log" suffix=".txt"/>
</Host>
tomcat启动访问的默认页面是可以修改的。web.xml里面直接拉到最后。
welecom-file-list
标签就是启动访问的页面。但是你这个的问题是去访问的另一个项目,那就是在你的编辑器里面去启动tomcat的时候,有设置访问url。去把那个改了就行了,我的在这个位置: