인프런 커뮤니티 질문&답변
user-service uri 변경 방법 문의
작성
·
397
0
안녕하세요. 실습 중 Eureka에서 서비스 클릭 시
위와같이 제 PC 명과 포트가 함께 나와서 실습이 좀 원할이 되지 않네요. uri를 127.0.0.1로 변경할 수 있는 방법이 있을까요?
답변 1
0
Dowon Lee
지식공유자
안녕하세요, 이도원입니다.
Eurekas에 등록된 서비스 애플리케이션의 IP는 아래와 같은 설정으로 변경하실 수 있습니다. 참고하시기 바랍니다. (https://www.inflearn.com/questions/209157)
server.address=127.0.0.1
#configuration to set the ip of host instead of the default localhost
eureka.instance.prefer-ip-address=true
eureka.instance.ip-address=${server.address}
감사합니다.





