From 7b615d3b160d83550303a677da8a1caedb4dd51a Mon Sep 17 00:00:00 2001 From: yangyx <360508847@qq.com> Date: Mon, 30 Sep 2024 12:12:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9spring=20boot=20actuator?= =?UTF-8?q?=E6=9C=AA=E6=8E=88=E6=9D=83=E6=BC=8F=E6=B4=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- waggle-dance-api/pom.xml | 4 ++++ waggle-dance-core/pom.xml | 4 ++++ .../src/main/resources/waggle-dance-server.yml.template | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/waggle-dance-api/pom.xml b/waggle-dance-api/pom.xml index 5b18aa203..f1ff0d4d6 100644 --- a/waggle-dance-api/pom.xml +++ b/waggle-dance-api/pom.xml @@ -29,6 +29,10 @@ org.springframework.boot spring-boot-starter-actuator + + org.springframework.boot + spring-boot-starter-security + org.springframework.boot spring-boot diff --git a/waggle-dance-core/pom.xml b/waggle-dance-core/pom.xml index 1e061573b..b409e1343 100644 --- a/waggle-dance-core/pom.xml +++ b/waggle-dance-core/pom.xml @@ -58,6 +58,10 @@ org.springframework.boot spring-boot-starter-actuator + + org.springframework.boot + spring-boot-starter-security + org.springframework.boot spring-boot-actuator diff --git a/waggle-dance/src/main/resources/waggle-dance-server.yml.template b/waggle-dance/src/main/resources/waggle-dance-server.yml.template index 9cde4d5e5..d434a796d 100644 --- a/waggle-dance/src/main/resources/waggle-dance-server.yml.template +++ b/waggle-dance/src/main/resources/waggle-dance-server.yml.template @@ -1 +1,7 @@ verbose: true +port: 48869 +endpoint.port: 18000 +management.security.enabled: true +security.user.name: admin +security.user.password: admin +management.endpoints.web.exposure.include: health,info,metrics,prometheus \ No newline at end of file