사용자 도구

사이트 도구


springframework:cloud_gateway

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
다음 판 양쪽 다음 판
springframework:cloud_gateway [2019/03/01 14:58]
kwon37xi
springframework:cloud_gateway [2019/05/14 14:09]
kwon37xi
줄 26: 줄 26:
    .filters(f -> f.stripPrefix(2))    .filters(f -> f.stripPrefix(2))
  .uri("http://httpbin.org:80))  .uri("http://httpbin.org:80))
 +</code>
 +  * Path Rewrite : [[https://stackoverflow.com/questions/48632054/spring-cloud-gateway-2-0-forward-path-variable|java - Spring Cloud Gateway 2.0 forward path variable - Stack Overflow]]<code java>
 +
 +route("userById", t -> t.path("/users/**")
 +  .filters(rw -> rw.rewritePath("/users/(?<segment>.*)", "/users/${segment}"))
 +  .uri("http://localhost:8080/users/"))
 +</code>
 +
 +====== Actuator ======
 +''implementation 'org.springframework.boot:spring-boot-starter-actuator''' 의존성 추가
 +
 +<code>
 +management.endpoint.gateway.enabled=true # default value
 +management.endpoints.web.exposure.include=gateway
 </code> </code>
  
줄 34: 줄 48:
   * [[https://aboullaite.me/spring-cloud-gateway/|A look into Spring Cloud Gateway!]]   * [[https://aboullaite.me/spring-cloud-gateway/|A look into Spring Cloud Gateway!]]
   * [[https://dzone.com/articles/spring-cloud-gateway-configuring-a-simple-route|Spring Cloud Gateway - Configuring a Simple Route - DZone Microservices]]   * [[https://dzone.com/articles/spring-cloud-gateway-configuring-a-simple-route|Spring Cloud Gateway - Configuring a Simple Route - DZone Microservices]]
 +  * [[https://springboot.cloud/26|Spring Cloud Gateway 2.1.0RELEASE 레퍼런스]]
springframework/cloud_gateway.txt · 마지막으로 수정됨: 2021/11/09 09:27 저자 kwon37xi