I have a use case. Spring MVC REST Url receive content using the GET method code is as follows:
@RequestMapping(\"/q/{key}\") public String query(@PathVariab
You can include regular expressions in your path variable as such:
@RequestMapping("/q/{key:.*}")
This will grab EVERYTHING after the /q/. Or you can make it a more specific regex to match the pattern you are actually expecting.