eureka server는 마이크로 서비스 중 여러 개의 서비스 서버의 상태를 체크할 수 있는
헬스 체크 모니터링 서버로 사용할 수 있다.
package org.blog.test; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; @SpringBootApplication @EnableEurekaServer public class EurekaServerApplication { public static void main(String[] args) { SpringApplication.run(EurekaServerApplication.class, args); } }
spring: application: name: eureka-server cloud: inetutils: default-hostname: eureka-server-1
전체 예제는 아래 링크에서 다운로드 받을 수 있다.
https://gitlab.com/shashaka/eureka-server-project
댓글 없음 :
댓글 쓰기