I need to Map a URL eg. testdata-p-12345 in my Controller, currently im trying to do it with this mapping.
@RequestMapping(value = "/**/*-p-")
And for the first variable:
...
private static final String CODE_PATH_VARIABLE_PATTERN = "{myCode:.*}";
@RequestMapping(value = CODE_PATH_VARIABLE_PATTERN, method = RequestMethod.GET)
public String getDetail(@PathVariable("myCode") final String myCode, final Model model,
...
When im calling the following URL the controller does not get called, does Spring support dashes inside the request mapping, how should the mapping look?