Rules
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”
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/springframeworkpathorg/**/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