idea创建maven项目默认访问页面的修改

在web.xml文件中的<web-app标签>之间加入代码

<welcome-file-list>
	<welcome-file>这儿写你要显示的页面名称</welcome-file>
</welcome-file-list>

之后就能跳转到对应的页面

posted @ 2023-03-20 21:22  万事胜意k  阅读(14)  评论(0编辑  收藏  举报