开发者社区 问答 正文

filter拦截tomcat的默认访问路径

http://localhost:8080 可以访问到我的项目
index.jsp
我想拦截http://localhost:8080这个请求 filter的url-pattern的应该怎么设置
或者有没有其他的办法 不想用/*来拦截所有请求

我是想问怎么才能拦截到http://localhost:8080这个请求

展开
收起
a123456678 2016-03-10 11:18:23 3209 分享 版权
1 条回答
写回答
取消 提交回答
  • index.html
    index.htm
    index.jsp
    default.html
    default.htm
    default.jsp
    </welcome-file-l

    把这去掉
    http://localhost:8080 可以就访问不到你的项目index.jsp

    2019-07-17 18:57:15
    赞同 展开评论