How to use multiple @PathVariable in spring - java?

+1 vote
42 views
asked Jun 14 in JAVA by anonymous
Hi

   Need help. How to use multiple @PathVariable in spring - java?

1 Answer

0 votes
answered Jun 14 by admin (8,115 points)

Hi

@RequestMapping(value = "/country/{id}/{id1}",

method = RequestMethod.GET, headers="Accept=application/json")

public Country getCountryById(@PathVariable("id") int id,@PathVariable("id1") int id1){

return null;

}

...