Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http.authorizeRequests().antMatchers("/admin/**").access("hasRole('ADMIN')").antMatchers("/**").denyAll();
- http.authorizeRequests().antMatchers("/users/**").permitAll().antMatchers("/**").denyAll();
- http.authorizeRequests().antMatchers("/login").permitAll().antMatchers("/admin/**").access("hasRole('ADMIN')").antMatchers("/**").denyAll();
Add Comment
Please, Sign In to add comment