✅ RequestMatcherSpring Security 에서 요청을 필터링하거나 특정 요청에 대한 보안 정책(인가, 인증 등) 을 매칭할 때 사용하는 핵심 인터페이스 중 하나이다.👉 org.springframework.security.web.util.matcher.RequestMatcher 기본적으로 Spring Security 6버전에서는 requestMatcher 를 이용한 URL 매칭을 한다.@Beanpublic SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http .authorizeHttpRequests(authorize -> authorize .requestMatchers( "/error" ..
Spring Security RequestMatcher 와 CustomFilter 를 이용한 특정 URL 체크하기
✅ RequestMatcherSpring Security 에서 요청을 필터링하거나 특정 요청에 대한 보안 정책(인가, 인증 등) 을 매칭할 때 사용하는 핵심 인터페이스 중 하나이다.👉 org.springframework.security.web.util.matcher.RequestMatcher 기본적으로 Spring Security 6버전에서는 requestMatcher 를 이용한 URL 매칭을 한다.@Beanpublic SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http .authorizeHttpRequests(authorize -> authorize .requestMatchers( "/error" ..
2025.11.14