项目场景:
自己部署项目,运行时跳转到网页不显示页面,出现$END$,
![](https://i-blog.csdnimg.cn/blog_migrate/b457c353985e5edd38226a9ae22accf5.png)
原因分析:
提示:$END$时运行成功Tomcat的默认界面,要设置自己想跳转的页面
![](https://i-blog.csdnimg.cn/blog_migrate/974d36d6b3d72e67a10457c13a9f9cbb.png)
解决方案:
将index.jsp删除(删除报错就只注销内容),在.xml文件中设置<welcome-file-list>,内容为自己想要跳转的界面,一般格式为.jsp
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
![](https://i-blog.csdnimg.cn/blog_migrate/f1d586742bf63f224b62cd5caf08c1ab.png)
![](https://i-blog.csdnimg.cn/blog_migrate/e350e31d93f8b5cbfbaf995c8558f515.png)
注意:
<welcome-file-list>要放在大的<web-app>下,否则括号的地方会标红