I have the following request mappings in my controllers, but when i hit /united-states/georgia
it always goes to the method mapped with {country/city}
even though . How to force it to go to the united-states method. Any suggestion would be appreciated.
@RequestMapping(value = "/{country:united-states|canada}/{state}")
public String getCitites(@PathVariable String country,@PathVariable String state){
.....
}
@RequestMapping(value = "/{country}/{city}")
public String getDetailsInCity(@PathVariable String country,@PathVariable String city){
.....
}