Created
September 10, 2016 02:06
-
-
Save dodangquan/3915924f3e15c167c0be5b9dcb25d0fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @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