zjffdu
zjffdu

Reputation: 28794

How to match nested path parameter in rest url (spring boot)

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

Upvotes: 0

Views: 365

Answers (1)

viking
viking

Reputation: 399

The answer is regexp pattern using MappingRequest. You can find a similar question here

Upvotes: 1

Related Questions