Folks,
This code snipped works:
@RequestMapping(method = RequestMethod.GET, produces = "application/json")
public ResponseEntity<List<Member>> findByMemberKeyOrUniqueMemberId(
Note that "Member" is an interface, not a class.
This does not work.
@RequestMapping(method = RequestMethod.POST)
public ResponseEntity<String> save(@RequestBody final List<Member> members) {
So I can turn Members into JSON but I can't receive JSON into Members. If I change save's argument from List to a List of one of Member's classes then it works fine but it really messes up my code.
How can I fix this?