Here is my spring controller code..
@RequestMapping(value= "/save_item",
method = RequestMethod.POST,produces="application/json")
public @ResponseBody ModelMap saveItem(ModelMap model,
@RequestParam("id") String itemId,
@RequestParam("name") String itemName) {
model.addAttribute("itemId",itemId);
return model;
}
How can i make a rest client using spring rest tempalte?.
I need to send two parameters from my rest client(id,name). Anyone Please help me.
Thanks.