How do I send array parameter with Spring RestTemplate?
This is the server side implementation:
@RequestMapping(value = \"/train\", method = RequestM
Try this
Change your request mapping from
@RequestMapping(value = "/train", method = RequestMethod.GET)
to
@RequestMapping(value = "/train/{category}/{positiveDocId[]}/{negativeDocId[]}", method = RequestMethod.GET)
and your URL in restTemplate
change URl in the below given format
http://localhost:8080/admin/train/category/1,2,3,4,5/6,7,8,9