From 9260795566607af23faaba52235d42c383fee718 Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: Sat, 11 Oct 2025 16:57:58 +0800
Subject: [PATCH] 还原启动程序
---
ard-admin/src/main/resources/application.yml | 52 ++++++++++++++++++++++++++++++++++++++++------------
1 files changed, 40 insertions(+), 12 deletions(-)
diff --git a/ard-admin/src/main/resources/application.yml b/ard-admin/src/main/resources/application.yml
index d8182d6..3405d58 100644
--- a/ard-admin/src/main/resources/application.yml
+++ b/ard-admin/src/main/resources/application.yml
@@ -29,12 +29,6 @@
# Tomcat启动初始化的线程数,默认值10
min-spare: 100
-# 日志配置
-logging:
- level:
- com.ard: info
- org.springframework: warn
-
# 用户配置
user:
password:
@@ -50,10 +44,12 @@
# 令牌密钥
secret: abcdefghijklmnopqrstuvwxyz
# 令牌有效期(默认30分钟)
- expireTime: 720
+ expireTime: 10
+ # 是否允许账户多终端同时登录(true允许 false不允许)
+ soloLogin: true
-# MyBatis配置
-mybatis:
+# MyBatis Plus配置
+mybatis-plus:
# 搜索指定包别名
typeAliasesPackage: com.ard.**.domain
# 配置mapper的扫描,找到所有的mapper.xml映射文件
@@ -95,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:
# 国际化资源文件路径
@@ -116,13 +129,13 @@
# redis 配置
redis:
# 地址
- host: 192.168.1.15
+ host: localhost
# 端口,默认为6379
port: 6379
# 数据库索引
database: 0
# 密码
- password:
+ password: 123456
# 连接超时时间
timeout: 10s
lettuce:
@@ -135,6 +148,21 @@
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
+
+ #健康监控
+ 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: dev-druid,dev
\ No newline at end of file
+ active: prod-druid,prod
+ #active: dev-druid,dev
\ No newline at end of file
--
Gitblit v1.9.3