How to intercept command as @PathVariable, given such mapping:
@RequestMapping(value = "/rest/v1/{command}", method = {GET, POST, PUT, DELETE, PATCH})
It works only for something like rest/v1/info
, but not for /rest/v1/info/more-info/and-more-info
- because I get 404. In that case, I would want my command variable to be equal to info/more-info/and-more-info
.