很多人肯定用tomcat的时候会遇到类似的问题。。。
配置了
<welcome-file-list>
<welcome-file>index.do</welcome-file>
</welcome-file-list>
但没有用,还是会404错误....挺烦人的,只能弄一个index.html重定向到index.do
但无疑是网站首页访问效率降低了,等于request了2个请求。。
无意看了一下tomcat注释
When a request URI refers to a directory, the default servlet looks for a " ...
- 浏览: 14199 次
- 性别:

- 来自: 广州

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
tomcat默认页诀窍
不错的小技巧!!
-- by xuehongliang -
tomcat默认页诀窍
恩,明白了,如果在webapp下有个index.do,里面又没有内容,则会拼成U ...
-- by hbcui1984 -
tomcat默认页诀窍
Lucas Lee 写道dingyuan 写道Lucas Lee 写道可以直接设 ...
-- by zhangfengsimon -
tomcat默认页诀窍
dingyuan 写道Lucas Lee 写道可以直接设置一个Servlet为默 ...
-- by Lucas Lee -
tomcat默认页诀窍
写一个空文件放到对应的目录下面,起个名叫XXX.do写一个模块专门在特定的时候打 ...
-- by 阳光晒晒






评论排行榜