I have a Spring controller mapping like following:
@RequestMapping(value = "api/{pathVar1}/receipt", method = RequestMethod.POST)
@ResponseBody
public String generateReceipt(HttpServletRequest request, @PathVariable String pathVar1) {
....
}
In this case what if the pathVar1 has slash('/'). Example request:
'api/CODE/1/receipt'
pathVar1 is supplied with
'CODE/1'
.