Пример #1
0
 @RequestMapping(value = "/contacts/{contactId}/addresses/{addressId}", method = DELETE)
 @PreAuthorize("hasPermission(#contactId, 'sample.Contact', 'DELETE')")
 public void deleteAddress(@PathVariable Long contactId, @PathVariable Long addressId) {
   contactService.deleteAddress(addressId);
 }