Spring Cloud로 개발하는 MSA/Catalogs and Orders Microservice

ch01. Users Microservice와 Spring Cloud Gateway 연동

webmaster 2022. 2. 1. 11:05
728x90

Port 불러오기

기존 heath_check URI에 PORT 값을 읽어오도록 변경

 

API Gateway 등록

API Gateway등록

API GateWay의 접속

해당 MSA로 접근하는데 접근이 되지 않는다

  • why? UserService의 URI와 API Gateway의 URI가 다르다.
  • UserServuce 의 메핑되는 URL 의 변경 시켜 주어야 한다.
  • GateWay의 접속되는 URL 로 바꿔 주어야 한다.
  • 접속 성공
728x90