我在Tomcat中设置了首页的信息如下:
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
login.jsp就是我想设置的首页,可是在浏览器中输入:http://localhost:8080/
页面还是显示Tomcat的主页,请教各位朋友是不是我还有那个地方没有配置呀?
网上的东西都是一样的都抄来抄去的,请真正高手赐教。
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
login.jsp就是我想设置的首页,可是在浏览器中输入:http://localhost:8080/
页面还是显示Tomcat的主页,请教各位朋友是不是我还有那个地方没有配置呀?
网上的东西都是一样的都抄来抄去的,请真正高手赐教。
如http://localhost:8080/studentProject
把Tomcat->webapps->ROOT文件夹下面内容,换成你的Web工程,再把你Web工程的发布路径改为"/"