Servlet url-pattern规则
* 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
页:
[1]