Skip to content

Instantly share code, notes, and snippets.

@cherniag
Created February 15, 2017 18:17
Show Gist options
  • Save cherniag/67d135323a197d832350e7b753a909ac to your computer and use it in GitHub Desktop.
Save cherniag/67d135323a197d832350e7b753a909ac to your computer and use it in GitHub Desktop.
Spring AOP PreAuthorize
annotation: @PreAuthorize("hasRole('ROLE_DELETE_ALL_SOURCES'))
actual entry point: org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler#createSecurityExpressionRoot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment