From 846c1855c8984d14356f6846ec35504c229412fb Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: Tue, 30 Sep 2025 15:46:11 +0800
Subject: [PATCH] 优化

---
 ard-admin/src/main/resources/application.yml |   39 ++++++++++++++++++++++++++++++++-------
 1 files changed, 32 insertions(+), 7 deletions(-)

diff --git a/ard-admin/src/main/resources/application.yml b/ard-admin/src/main/resources/application.yml
index 6bcb9f9..7434cfe 100644
--- a/ard-admin/src/main/resources/application.yml
+++ b/ard-admin/src/main/resources/application.yml
@@ -91,8 +91,25 @@
   log-response-content: true   # 打开/关闭Forest响应内容日志(默认为 false)
   async-mode: platform         # [自v1.5.27版本起可用] 异步模式(默认为 platform)
 
+# 服务端点检查
+management:
+  endpoints:
+    web:
+      exposure:
+        include: health,info,logfile,loggers
+  endpoint:
+    info:
+      enabled: true
+    health:
+      enabled: true
+      show-details: always
+    logfile:
+      external-file: logs/info.log
+
 # Spring配置
 spring:
+  application:
+    name: ard-uav
   # 资源信息
   messages:
     # 国际化资源文件路径
@@ -131,13 +148,21 @@
         max-active: 8
         # #连接池最大阻塞等待时间(使用负值表示没有限制)
         max-wait: -1ms
-  jackson:
-    property-naming-strategy: SNAKE_CASE
-    date-format: yyyy-MM-dd HH:mm:ss
-    default-property-inclusion: NON_NULL
-    deserialization:
-      FAIL_ON_UNKNOWN_PROPERTIES: false
+
+  #健康监控
+  boot:
+    admin:
+      client:
+        url: http://127.0.0.1:9100
+        username: admin
+        password: admin
+        instance:
+          name: ard-uav
+          management-url: http://127.0.0.1:8080/actuator
+          service-url: http://127.0.0.1:8080/
+
+
   # 激活配置文件
   profiles:
-    # active: prod-druid,prod
+    #active: prod-druid,prod
     active: dev-druid,dev
\ No newline at end of file

--
Gitblit v1.9.3