# URL Path Variable Matching

* [Reference](https://www.baeldung.com/spring-5-mvc-url-matching)

| Pattern         | Pattern String          | Example            | Matches              | Remark                      |
| --------------- | ----------------------- | ------------------ | -------------------- | --------------------------- |
| {*foo}          | /spring/{*id}           | /spring/bb/tutor   | /bb/tutor            |                             |
|                 |                         | /spring/bb         | /bb                  |                             |
| {*filepaths}    | /files/{*filepaths}     | /files/hello.txt   | content of hello.txt | RouterFunctions.resources() |
| ?               | /spring/t?st            | /spring/test       |                      |                             |
| *               | /spring/*Id             | /spring/TutorId    |                      |                             |
| **              | /spring/**              | /spring/xx/yy/xx   |                      |                             |
| {params:[a-z]+} | /spring/{parama:[a-z]+} | /spring/parama=abc | abc                  |                             |
| {var1}_{var2}   | /spring/{var1}_{var2}   | /spring/aa_bb      | aa,bb                |                             |



