+1 vote
84 views
asked in JAVA by
Hi

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

1 Answer

0 votes
answered by (8.2k 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;

}

Categories

...