更改Tomcat启动时默认跳转的页面

记录一下今天更改Tomcat启动时默认跳转的页面的操作。


运行Tomcat时候成功时,默认是跳转到index.jsp

更改默认跳转的页面步骤:

在WEB-INF下找到web.xml
在这里插入图片描述
打开web.xml
在这里插入图片描述
在里面加上:

<welcome-file-list>
        <welcome-file>页面名称</welcome-file>
    </welcome-file-list>

如:
在这里插入图片描述
即可默认跳转到 login.jsp 页面。

发布了58 篇原创文章 · 获赞 10 · 访问量 1242

猜你喜欢

转载自blog.csdn.net/weixin_44824500/article/details/104887414