@PreAuthorize("hasRole('ROLE_ADMIN')") @RequestMapping(value = "/{id}/handle", method = RequestMethod.GET) public @ResponseBody boolean handle(@PathVariable("id") Long id) { try { interfaceReportService.setHandled(id); return true; } catch (Exception ex) { return false; } }