sungwon-097 / Spring_Security

1 stars 0 forks source link

Deprecated : WebSecurityConfigurerAdapter #4

Open sungwon-097 opened 1 year ago

sungwon-097 commented 1 year ago
// Before 
@Override
public void configure(WebSecurity web){
 web.ignore().antMatchers("/assets/**", "/h2-console/**", "/api/hello2");
}

// After
@Bean
public WebSecurityCustomizer webSecurityCustomizer(){
 return (web) -> web.ignoring().antMatchers("/assets/**", "/h2-console/**", "/api/hello2");
}