关于tomcat启动后,直接访问本地地址默认的页面

来源:互联网 发布:单片机和pc通信 编辑:程序博客网 时间:2024/05/17 01:29

最近,刚开始做毕业设计。搭建环境的时候,启动tomcat之后直接输入localhost:8088后就出现了index.ftl页面,

如果更改了index.ftl的文件名,index1.ftl这样抛异常了。但是如果更改了后缀名,则只会默认访问.HTML页面的文件。


参考代码:tomcat/conf/web.xml

 <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
   </welcome-file-list>

0 0
原创粉丝点击