正确格式
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
不允许
<welcome-file-list>
<welcome-file>index.do</welcome-file>
</welcome-file-list>
上述配置情况下启动服务器,终是报404错误,但我在地址栏手工加入index.do时,页面正常显示。
原因:<welcome-file>index.jsp </welcome-file> 节点中只能包含HTML、HTM、TEXT文件,不能访问控制器