maven项目能显示index.html或者index.jsp路径的xml配置

在这里插入图片描述

<web-app>
<display-name>Archetype Created Web Application</display-name>
<welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>

会显示:http://localhost:8080/项目名字/index.jsp(或者index.html)

发布了93 篇原创文章 · 获赞 25 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_40282732/article/details/103104132