ant path匹配原则

ant path匹配原则

又称路径匹配原则,spring中的相关策略类org.springframework.util.AntPathMatcher

路径模式使用了apache ant的路径样式

 

apache ant样式的路径有三种通配符匹配方法:

? 匹配任意单字符

* 匹配0或者任意数量的字符

** 匹配0或者更多的目录

 

例如**/*.jsp 匹配任何的.jsp文件

猜你喜欢

转载自www.cnblogs.com/yanguobin/p/11517800.html
ANT