WebSecurityConfigurerAdapter deprecated
๊ทธ๋ฆฌ๊ณ antMatchers๋ deprecated ๋์ด์ ๋ฐ์์ ๊ฐ์ ๋ฐฉ์์ผ๋ก ํด์ฃผ์๋ฉด ์งํ ๋ ๊ฑฐ์์.@Configuration @EnableWebSecurity public class SecurityConfig { @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http .authorizeHttpRequests() .requestMatchers("/api/hello").permitAll() .anyRequest().authenticated(); return http.build(); } }