Ant-style path patterns matching in spring-framework:
The mapping matches URLs using the following rules:
?matches one character*matches zero or more characters**matches zero or more ‘directories’ in a path{spring:[a-z]+}matches the regexp[a-z]+as a path variable named “spring”Some examples:
com/t?st.jsp– matches com/test.jsp but alsocom/tast.jsporcom/txst.jspcom/*.jsp– matches all.jspfiles in thecomdirectorycom/**/test.jsp– matches alltest.jspfiles underneath thecompathorg/springframework/**/*.jsp– matches all.jspfiles underneath theorg/springframework pathorg/**/servlet/bla.jsp– matchesorg/springframework/servlet/bla.jspbut alsoorg/springframework/testing/servlet/bla.jspandorg/servlet/bla.jspcom/{filename:\\w+}.jspwill matchcom/test.jspand assign the valuetestto thefilenamevariable
http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/util/AntPathMatcher.html