Example #1
0
 @Secured({"ROLE_ADMIN"})
 @RequestMapping(value = "/info", method = RequestMethod.DELETE)
 @ResponseBody
 public ResponseEntity<?> deleteInfo(@RequestBody InfoEntity info) throws Exception {
   infoService.updateDesigInfo(info);
   String jsonObj = "{\"msg\":\"Updated\"}";
   return new ResponseEntity<String>(jsonObj, HttpStatus.OK);
 }