spring boot - how to avoid "Failed to instantiate [java.util.List]: Specified class is an interface" in HTTP controller handler?
Try to add RequestBody annotation to your method definition
@RequestMapping(value="/custtable/update", method=RequestMethod.POST)@ResponseBodypublic String updateCusttableRecords(@RequestBody List<Custtable> customers) { //Method body }
For me I had made a typo accidentally wrapping a class in a list.Removing the typo allowed serialization to happen correctly via spring data rest + jackson.
List<MyClass> a; // typoMyClass = a;// fix