Spring Cloud Gateway 적용, Filter(Custom, Global, OrderedGatewayFilter) 적용해보기


Spring Cloud Gateway 적용, Filter(Custom, Global, OrderedGatewayFilter) 적용해보기

앞에서 적용한 Netflix zuul 은 비동기 처리에 호환성이 떨어지고 spring 프레임워크에 대한 호환이 떨어져서 spring 에서 자체적으로 gateway 를 만들었다 (zuul 은 다음 버전에 없어질 수도 있다) 그래서 spring cloud gateway 를 적용해보려고 한다. Spring Cloud Gateway 적용 gradle 과 application.yml 을 설정한다. id = 서비스를 구분하는 id 설정 predicates = 조건 입력 가능 - Path = 사용자가 입력하는 path uri = path 로 요청이 오면 설정한 uri 로 요청이 가게한다 Netflix Zuul 과 Spring Cloud Gateway 의 맵핑 차이점 [Netflix Zuul 적용 했을 때 FirstServiceController] Netflix Zuul 에선 /first-servi..........



원문링크 : Spring Cloud Gateway 적용, Filter(Custom, Global, OrderedGatewayFilter) 적용해보기