I'd like to match a nested path of rest url, e.g. I'd like use one parameter to capture /folder_1/folder_2/a.sh
for the following rest url. Is there any way to do that in spring boot. And BTW, I also want to match the empty path if it is /files
. Thanks
/files/folder_1/folder_2/a.sh
The answer is regexp
pattern using MappingRequest.
You can find a similar question here