@Configuration
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.mvcMatchers("/", "info", "/account/**").permitAll()
.mvcMatchers("/admin").hasRole("ADMIN")
.anyRequest().authenticated();
http.formLogin();
http.httpBasic();
}
}
필터 들의 목록은 시큐리티 설정 클래스에서 정해진다. 어떤 설정을 하는지에 따라
내가 한 요청이 어떻게 filter proxy까지 왔을까?