ITeye博客

Servlet url-pattern规则

ghsea · 2008-04-10 22:33 · java · JSP · Servlet · Markdown

* Exact match (/foo)绝对匹配
* Path match (/foo/*)部分匹配
* Extension match (*.foo)后缀匹配
* Default servlet (/) which is useful only for servlet mappings

There is no legal syntax to say "all but this set of paths".

如果pattern写成/foo/或者 /*.jsp或者*/foo等等都是无效的url-pattern

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。