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-test.yaml | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/shasteel-biz/src/main/resources/application-test.yaml b/shasteel-biz/src/main/resources/application-test.yaml index 1b8219d..53fbf43 100644 --- a/shasteel-biz/src/main/resources/application-test.yaml +++ b/shasteel-biz/src/main/resources/application-test.yaml @@ -60,6 +60,27 @@ 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] + # Spring Boot Admin Server 服务端的相关配置 + context-path: /admin # 配置 Spring + --- #################### 平台相关配置 #################### # 平台配置项,设置当前项目所有自定义的配置 -- Gitblit v1.9.3