Created
July 7, 2011 11:46
-
-
Save igm/1069343 to your computer and use it in GitHub Desktop.
Secured methods
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
@Controller | |
public class MyController { | |
@Secured(admin = true) | |
@RequestMapping(value="/show_users.html", method = RequestMethod.GET) | |
public String showAllUsers(Model model) { | |
... | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment