Is there a way to math the remaining URL part in a Spring controller?
i.e. if my route is /user/{userId}/*
can I get the userId param and the rest of the url? The * part?
For example for /user/1/this/is/a/path.html?a=b
I should get
userId = 1
and userUrl = /this/is/a/path.html?a=b
I've seen some solutions and did some Googling but they seem kind of strange way to do it (most likely due to the answers being for an older version of Spring) So in a more recent version how can this e done in a clean way?