Update WebSecurityConfig.java

This commit is contained in:
Rufina Uche 2023-10-14 21:50:59 +01:00 committed by GitHub
parent 4fb3cb2577
commit 0bbc9163f9

View File

@ -24,10 +24,11 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override @Override
protected void configure(HttpSecurity http) throws Exception { protected void configure(HttpSecurity http) throws Exception {
http http.authorizeRequests()
.authorizeRequests() .antMatchers("/")
.antMatchers("/").permitAll() .permitAll()
.anyRequest().authenticated() .anyRequest()
.authenticated()
.and() .and()
.formLogin(); .formLogin();
} }