diff --git a/src/main/java/org/springframework/samples/petclinic/web/OwnerResource.java b/src/main/java/org/springframework/samples/petclinic/web/OwnerResource.java index fbcbd494f20747b4cfbb21b9756eb3167cd27b0f..315cb7011804fa4caa2c6d9a65f521471a40e11c 100644 --- a/src/main/java/org/springframework/samples/petclinic/web/OwnerResource.java +++ b/src/main/java/org/springframework/samples/petclinic/web/OwnerResource.java @@ -71,14 +71,12 @@ public class OwnerResource { } - @RequestMapping(value = "/owner/{ownerId}", method = RequestMethod.GET, - produces = MediaType.APPLICATION_JSON_VALUE) + @RequestMapping(value = "/owner/{ownerId}", method = RequestMethod.GET) public Owner findOwner(@PathVariable("ownerId") int ownerId) { return retrieveOwner(ownerId); } - @RequestMapping(value = "/owner/list", method = RequestMethod.GET, - produces = MediaType.APPLICATION_JSON_VALUE) + @RequestMapping(value = "/owner/list", method = RequestMethod.GET) public Collection<Owner> findOwnerCollection(@RequestParam("lastName") String ownerLastName) { if (ownerLastName == null) {