update 将 Actuator 配置 移动到全局配置

This commit is contained in:
疯狂的狮子li 2021-08-05 13:30:04 +08:00
parent 4e54190e3a
commit ffd3dc335f
4 changed files with 17 additions and 28 deletions

View File

@ -290,6 +290,7 @@
<!-- 环境标识,需要与配置文件的名称相对应 --> <!-- 环境标识,需要与配置文件的名称相对应 -->
<profiles.active>local</profiles.active> <profiles.active>local</profiles.active>
<logging.level>debug</logging.level> <logging.level>debug</logging.level>
<endpoints.include>'*'</endpoints.include>
</properties> </properties>
</profile> </profile>
<profile> <profile>
@ -298,6 +299,7 @@
<!-- 环境标识,需要与配置文件的名称相对应 --> <!-- 环境标识,需要与配置文件的名称相对应 -->
<profiles.active>dev</profiles.active> <profiles.active>dev</profiles.active>
<logging.level>debug</logging.level> <logging.level>debug</logging.level>
<endpoints.include>'*'</endpoints.include>
</properties> </properties>
<activation> <activation>
<!-- 默认环境 --> <!-- 默认环境 -->
@ -309,6 +311,7 @@
<properties> <properties>
<profiles.active>prod</profiles.active> <profiles.active>prod</profiles.active>
<logging.level>warn</logging.level> <logging.level>warn</logging.level>
<endpoints.include>health,info</endpoints.include>
</properties> </properties>
</profile> </profile>

View File

@ -129,20 +129,6 @@ spring:
username: ruoyi username: ruoyi
password: 123456 password: 123456
# Actuator 监控端点的配置项
management:
endpoints:
web:
# Actuator 提供的 API 接口的根目录。默认为 /actuator
base-path: /actuator
exposure:
# 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
# 生产环境不建议放开所有 根据项目需求放开即可
include: '*'
endpoint:
logfile:
external-file: ./logs/sys-console.log
--- # OSS 云存储(界面 <参数设置> 可切换) --- # OSS 云存储(界面 <参数设置> 可切换)
cloud-storage: cloud-storage:
# minio配置 # minio配置

View File

@ -129,20 +129,6 @@ spring:
username: ruoyi username: ruoyi
password: 123456 password: 123456
# Actuator 监控端点的配置项
management:
endpoints:
web:
# Actuator 提供的 API 接口的根目录。默认为 /actuator
base-path: /actuator
exposure:
# 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
# 生产环境不建议放开所有 根据项目需求放开即可
include: health,info
endpoint:
logfile:
external-file: ./logs/sys-console.log
--- # OSS 云存储(界面 <参数设置> 可切换) --- # OSS 云存储(界面 <参数设置> 可切换)
cloud-storage: cloud-storage:
# minio配置 # minio配置

View File

@ -287,6 +287,20 @@ lock4j:
# 分布式锁的超时时间,默认为 30 毫秒 # 分布式锁的超时时间,默认为 30 毫秒
expire: 30000 expire: 30000
--- # Actuator 监控端点的配置项
management:
endpoints:
web:
# Actuator 提供的 API 接口的根目录。默认为 /actuator
base-path: /actuator
exposure:
# 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
# 生产环境不建议放开所有 根据项目需求放开即可
include: @endpoints.include@
endpoint:
logfile:
external-file: ./logs/sys-console.log
--- # 定时任务配置 --- # 定时任务配置
spring: spring:
quartz: quartz: