Skip to content

Instantly share code, notes, and snippets.

@dodangquan
Created September 10, 2016 02:06
Show Gist options
  • Save dodangquan/3915924f3e15c167c0be5b9dcb25d0fb to your computer and use it in GitHub Desktop.
Save dodangquan/3915924f3e15c167c0be5b9dcb25d0fb to your computer and use it in GitHub Desktop.
// @org.springframework.security.access.prepost.PreAuthorize
@Transactional
@PreAuthorize("hasRole('ROLE_ADMIN')")
public void removeContact(int id) {
contactDao.removeContact(id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment