Update HttpSecurityConfig.java
This commit is contained in:
parent
9fcdc43c5c
commit
4fb3cb2577
|
@ -13,8 +13,7 @@ public class HttpSecurityConfig extends WebSecurityConfigurerAdapter {
|
||||||
protected void configure(HttpSecurity http) throws Exception {
|
protected void configure(HttpSecurity http) throws Exception {
|
||||||
// Given: HttpSecurity configured
|
// Given: HttpSecurity configured
|
||||||
|
|
||||||
http
|
http.authorizeRequests()
|
||||||
.authorizeRequests()
|
|
||||||
.antMatchers("/public/**").permitAll()
|
.antMatchers("/public/**").permitAll()
|
||||||
.antMatchers("/admin/**").hasRole("ADMIN")
|
.antMatchers("/admin/**").hasRole("ADMIN")
|
||||||
.anyRequest().authenticated()
|
.anyRequest().authenticated()
|
||||||
|
|
Loading…
Reference in New Issue