首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 互联网 >

Spring3 url婚配规则

2013-02-04 
Spring3 url匹配规则Spring3 url匹配规则WildcardDescription ?匹配任何单字符 *匹配0或者任意数量的字符

Spring3 url匹配规则

Spring3 url匹配规则WildcardDescription ?匹配任何单字符 *匹配0或者任意数量的字符 **匹配0或者更多的目录 

举例:

PathDescription /app/*.x匹配(Matches)所有在app路径下的.x文件 /app/p?ttern匹配(Matches) /app/pattern 和 /app/pXttern,但是不包括/app/pttern /**/example匹配(Matches) /app/example, /app/foo/example, 和 /example /app/**/dir/file.匹配(Matches) /app/dir/file.jsp, /app/foo/dir/file.html,/app/foo/bar/dir/file.pdf, 和 /app/dir/file.java /**/*.jsp匹配(Matches)任何的.jsp 文件

热点排行