SpringMVC路徑匹配規則AntPathMatcher(轉)
SpringMVC的路徑匹配規則是依照Ant的來的.
實際上不只是SpringMVC,整個Spring框架的路徑解析都是按照Ant的風格來的.
在Spring中的具體實現,詳情參見 org.springframework.util.AntPathMatcher
.
具體規則如下(來自Spring AntPathMatcher源碼註釋):
* [email protected] PathMatcher} implementation for Ant-style path patterns.
*
* <p>Part of this mapping code has been kindly borrowed from <a href="http://ant.apache.org">Apache Ant</a>.
*
* <p>The mapping matches URLs using the following rules:<br>
* <ul>
* <li>[email protected]