From b6f6b69fa189a2984790aef74d6eb5ad64408744 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期二, 21 一月 2025 11:21:19 +0800 Subject: [PATCH] 增加springboot admin日志监控配置 --- shasteel-biz/src/main/resources/application-prod.yaml | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/shasteel-biz/src/main/resources/application-prod.yaml b/shasteel-biz/src/main/resources/application-prod.yaml index 876dbec..1eaf369 100644 --- a/shasteel-biz/src/main/resources/application-prod.yaml +++ b/shasteel-biz/src/main/resources/application-prod.yaml @@ -45,6 +45,26 @@ database: 8 password: 123456 +--- #################### 监控相关配置 #################### + +# Actuator 监控端点的配置项 +management: + endpoints: + web: + base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator + exposure: + include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。 + +# Spring Boot Admin 配置项 +spring: + boot: + admin: + # Spring Boot Admin Client 客户端的相关配置 + client: + instance: + service-host-type: IP # 注册实例时,优先使用 IP [IP, HOST_NAME, CANONICAL_HOST_NAME] + context-path: /admin # 配置 Spring + --- #################### MQ #################### spring: -- Gitblit v1.9.3