inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)

Prometheus와 Grafana 설치

apigateway-service application.yml 파일 수정시 오류

313

강준
1

강의 06:35초 부근

order-service/actuator 추가시

기존 order-service 전역 라우팅 부분의 아랫쪽이 아닌 윗쪽에 해야 합니다.

아랫쪽에 입력해놓으니 계속 404가 뜨더라구요. 아마 순차적으로 라우터처리되서 그런것같습니다.

- id: order-service
uri: lb://ORDER-SERVICE
predicates:
- Path=/order-service/actuator/**
- Method=GET
filters:
- RemoveRequestHeader=Cookie
- RewritePath=/order-service/(?<segment>.*), /$\{segment}
- id: order-service
uri: lb://ORDER-SERVICE
predicates:
- Path=/order-service/**

강의 잘 듣고 있습니다~!

답변 0