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
Annotations of @ PathVariable may not be able to solve this problem.Last use the workaround is resolved.Code is as follows:
@RequestMapping("/q/**")
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.