Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Configuration
- @EnableGlobalMethodSecurity(prePostEnabled = true)
- public class MethodSecurityConfiguration extends GlobalMethodSecurityConfiguration {
- @Override
- protected MethodSecurityExpressionHandler createExpressionHandler() {
- return new OAuth2MethodSecurityExpressionHandler();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement