removing MediaType declaration

This commit is contained in:
michaelisvy 2015-07-01 09:39:19 +08:00
parent fedb7d43fc
commit 3d6685d0ae

View file

@ -71,14 +71,12 @@ public class OwnerResource {
} }
@RequestMapping(value = "/owner/{ownerId}", method = RequestMethod.GET, @RequestMapping(value = "/owner/{ownerId}", method = RequestMethod.GET)
produces = MediaType.APPLICATION_JSON_VALUE)
public Owner findOwner(@PathVariable("ownerId") int ownerId) { public Owner findOwner(@PathVariable("ownerId") int ownerId) {
return retrieveOwner(ownerId); return retrieveOwner(ownerId);
} }
@RequestMapping(value = "/owner/list", method = RequestMethod.GET, @RequestMapping(value = "/owner/list", method = RequestMethod.GET)
produces = MediaType.APPLICATION_JSON_VALUE)
public Collection<Owner> findOwnerCollection(@RequestParam("lastName") String ownerLastName) { public Collection<Owner> findOwnerCollection(@RequestParam("lastName") String ownerLastName) {
if (ownerLastName == null) { if (ownerLastName == null) {