I was wondering if I can customize my url into controller to accept null values
@RequestMapping(
value = "foo/{y}/{x}",
method = RequestMethod.GET)
public ModelAndView doSmth(@PathVariable(value = "x") String x,
@PathVariable(value = "y") String y) {
}
Here in my case , X , Y can be empty string . How could I manage smth like that to let this method on the controller to handle this url ?