Ribbon을 통해서 API서버와의 로드밸런싱은 잘 작동한다. 하지만, fridge-service 서버가 추가로 등록되면 application.yml 파일을 열고 listOfServers 프로퍼티에 추가로 등록된 서버의 주소를 입력하고 다시 빌드해야하는 단점이 있다. 아이피, 포트를 직접 환경설정파일에 할당하는것도 마찬가지다. Eureka 서버를 구성하고, fridge-service, fridge-web 서비스가 Eureka Client가 되어 Eureka 서버에서 서버목록을 제공받을 수 있으면, 위의 문제점을 해결할 수 있다. fridge-eureka 프로젝트를 생성한다. 의존성은 Cloud Discovery 의 Eureka Server를 체크하고 Finish를 클릭한다. SpringBootApplication 파일명을 EurekaServiceApplication으로 변경하고, @EnableEurekaServer 애너테이션을 추가한다. @EnableEurekaServer @SpringBootApplication public class EurekaServiceApplication { public static void main(String[] args) { SpringApplication.run(EurekaServiceApplication.class, args); } } application.properties 파일을 yml로 변경하고 다음과 같이 설정을 편집한다. spring: application: name: eureka-server server: port: 8761 eureka: client: register-with-eureka: false fetch-registry: false logging: level: com.netflix.eureka: off com.netflix.discovery: off 애플리케이션명은 eureka-server 이며, port 8761번을 사용한...