Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Configuration
- @EnableWebSecurity
- public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
- .
- .
- .
- .
- //other stuff
- .
- .
- .
- .
- @Override
- protected void configure(HttpSecurity http) throws Exception {
- //other stuff
- //other stuff
- //other stuff
- http.authorizeRequests().antMatchers("url/i/want/to/manage").access("ROLE_FOR_THAT_URL");
- //other stuff
- //other stuff
- //other stuff
- }
Add Comment
Please, Sign In to add comment