Update WebSecurityConfig.java

This commit is contained in:
Rufina Uche
2023-10-21 19:17:05 +01:00
committed by GitHub
parent b17ab69f4d
commit 643da80391
@@ -25,11 +25,11 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override @Override
protected void configure(HttpSecurity http) throws Exception { protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests() http.authorizeRequests()
.antMatchers("/") .antMatchers("/")
.permitAll() .permitAll()
.anyRequest() .anyRequest()
.authenticated() .authenticated()
.and() .and()
.formLogin(); .formLogin();
} }
} }