就是制定首页
比如你写的项目 地址是 127.0.0.1
里边有一个也页面 index.jsp
如果要访问这个页面的话你要输入 127.0.0.1/index.jsp
如果在 <welcome-file-list>里指定了index.jsp为首页的话
你只要输入 127.0.0.1 就能直接打开 index.jsp
实例:在web.xml中添加
<!-- 缺省首页 -->
<welcome-file-list>
<welcome-file>/loginpage.html</welcome-file>
</welcome-file-list>