문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
springframework:cloud_gateway [2019/02/28 21:55] kwon37xi |
springframework:cloud_gateway [2019/03/01 15:01] kwon37xi |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Spring Cloud Gateway ====== | ====== Spring Cloud Gateway ====== | ||
* [[https:// | * [[https:// | ||
- | * Spring | + | * Spring |
- | * [[java: | + | * [[java: |
- | * Non Blocking | + | |
* Java Code 기반 Routing 설정 가능 | * Java Code 기반 Routing 설정 가능 | ||
+ | ====== Routings ====== | ||
+ | * '' | ||
+ | .route(p -> p.path("/ | ||
+ | .filters(f -> f.addRequestHeader(" | ||
+ | .uri(" | ||
+ | </ | ||
+ | * URL을 중간에 바꿔치기해서 라우팅 '' | ||
+ | .route(p -> p.path("/ | ||
+ | .filters(f -> f.setPath("/ | ||
+ | .uri(" | ||
+ | </ | ||
+ | * PATH 앞에 떼어내기 '' | ||
+ | route(" | ||
+ | | ||
+ | | ||
+ | // '/ | ||
+ | </ | ||
+ | * PATH Variable 정규표현식 '' | ||
+ | route(" | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | * Path Rewrite : [[https:// | ||
+ | |||
+ | route(" | ||
+ | .filters(rw -> rw.rewritePath("/ | ||
+ | .uri(" | ||
+ | </ | ||
===== 참조 ===== | ===== 참조 ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// |