People,
This edited code 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) {
Therefore, I can turn members into JSON, but I cannot get JSON into Members. If I changed the save argument from a list to a list of one of the member classes, then it works fine, but it really messed up my code.
How can i fix this?
source
share