Spring Security Web을 사용하여 IP 접근 제어 구현하기 Spring security web의 IpAddressMatcher와 spring interceptor를 이용해 클라이언트 IP가 특정 IP 대역에 맞는지 체크하는 접근 제어 로직을 구현해보자. Dependency implementation 'org.springframework.security:spring-security-web' spring-security-web 의존성을 추가한다. Interceptor 생성 및 등록 @Slf4j @RequiredArgsConstructor @Component public class IpAddressAccessControlInterceptor implements HandlerInterceptor { @Override public boolean preHandle(Http.. 2021. 9. 1. 이전 1 다음