To get list of objects via @RequestBody
in controller and process each object in a list
to do a business logic.
I have tried this but not working
@RequestMapping(value="/updateservicetype", method=RequestMethod.POST,produces="application/json")
public @ResponseBody ServiceTypesMessage updateServiceType(@RequestBody List<BarberServiceType> serviceTypes,final HttpServletResponse response){
also tried following:
@RequestMapping(value="/updateservicetype", method=RequestMethod.POST,produces="application/json")
public @ResponseBody ServiceTypesMessage updateServiceType(@RequestBody BarberServiceType[] serviceTypes,final HttpServletResponse response){