版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/athur666/article/details/80565672
一般项目启动默认是访问webapp下的index页面,但是有时我们需要让项目以某个文件夹启动,来改变默认页面。
这样项目启动之后就会默认访问build下的index.html
web.xml中添加默认页面
<welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list>