Spring MVC return ajax response using Jackson
- by anshumn
I have a scenario where I am filling a dropdown box in JSP through AJAX response from the server. In the controller, I am retuning a Collection of Product objects and have annotated the return type with @ResponseBody.
Controller -
@RequestMapping(value="/getServicesForMarket", method = RequestMethod.GET)
public @ResponseBody…