RouteFunctions를 사용할 때는 PathPattern을 이용할 수 있다.
?
: matches one character
*
: matches zero or more characters within a path segment
**
: matches zero or more path segments until the end of the path
{spring}
: matches a path segment and captures it as a variable named "spring"
{spring:[a-z]+}
: matches the regexp [a-z]+ as a path variable named "spring"
{*spring}
: matches zero or more path segments until the end of the path and captures it as a variable named "spring"
*path segment : "/"로 구분되는 각각의 덩어리들
(Spring MVC에서 사용하는 것으로 추측되는) AntPathMatcher
와 다르게, **
및 {*name}
은 "end of the path" 까지 한 번에 가져옴
/pages/t?st.html
/resources/*.png
/resources/**
/resources/{*path}
/resources/{filename:\w+}.dat