Java 如何覆盖tomcat主页
我试图覆盖tomcat主页,因为我需要index.html作为主页,而不是index.jsp 因此,我尝试在web.xml中设置如下:Java 如何覆盖tomcat主页,java,tomcat,Java,Tomcat,我试图覆盖tomcat主页,因为我需要index.html作为主页,而不是index.jsp 因此,我尝试在web.xml中设置如下: <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> index.html 当我重新启动tomcat时,它仍然会转到index.jsp页面 PS:我正在使用Intellij 13
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
index.html
当我重新启动tomcat时,它仍然会转到index.jsp页面
PS:我正在使用Intellij 13,是这样吗 Short-anwser:如果要“覆盖”默认上下文,则需要在webapps内部的“ROOT”目录中安装webapp。Short-anwser:如果要“覆盖”默认上下文,则需要在webapps内部的“ROOT”目录中安装webapp。Short-anwser:如果要“覆盖”默认上下文,您需要在webapps内的目录“ROOT”中安装webapp。简而言之:如果您想要“覆盖”默认上下文,您需要在webapps内的目录“ROOT”中安装webapp