From e03effe0c2d3104b145dd04353a2ee625555f561 Mon Sep 17 00:00:00 2001 From: aesperer Date: Mon, 15 Jan 2024 22:48:43 +0900 Subject: [PATCH] =?UTF-8?q?eureka=20server=EB=8A=94=20config=20server?= =?UTF-8?q?=EC=97=90=20=EC=9D=98=ED=95=B4=20=EA=B5=AC=EC=84=B1=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=EA=B0=80=20=EA=B4=80=EB=A6=AC=EB=90=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EC=8A=B5=EB=8B=88=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 28 +++++++++++++++++++++------- src/main/resources/bootstrap.yml | 9 --------- 2 files changed, 21 insertions(+), 16 deletions(-) delete mode 100644 src/main/resources/bootstrap.yml diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 8b91002..a09f31b 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,11 +1,25 @@ -server: - port: 8761 - spring: application: - name: eureka-service - + name: eureka-server + boot: + admin: + context-path: /admin +server: + port: 8761 eureka: + instance: + hostname: eurekaserver client: - register-with-eureka: false - fetch-registry: false \ No newline at end of file + registerWithEureka: false + fetchRegistry: false + serviceUrl: + defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/ + server: + waitTimeInMsWhenSyncEmpty: 5 + + +management: + endpoints: + web: + exposure: + include: "*" \ No newline at end of file diff --git a/src/main/resources/bootstrap.yml b/src/main/resources/bootstrap.yml deleted file mode 100644 index 7b5284f..0000000 --- a/src/main/resources/bootstrap.yml +++ /dev/null @@ -1,9 +0,0 @@ -#spring: -# application: -# name: eureka-server -# cloud: -# config: -# uri: http://configserver:8071 -# loadbalancer: -# ribbon: -# enabled: false \ No newline at end of file