服务健康检查

This commit is contained in:
2025-11-10 16:10:29 +08:00
parent a0fe94a09a
commit 314aa65b76
12 changed files with 161 additions and 108 deletions

View File

@@ -77,6 +77,14 @@ management:
endpoint:
health:
show-details: always
group:
readiness:
include: discoveryComposite,ping,refreshScope
health:
redis:
enabled: false
db:
enabled: false
mybatis-plus:
configuration:

View File

@@ -1,5 +1,5 @@
server:
port: 8080
port: 7102
spring:
application:
@@ -31,10 +31,8 @@ spring:
discovery:
server-addr: 192.168.65.161:8848
group: LOCAL_GROUP
# server-addr: 127.0.0.1:8848
enabled: false
# username: nacos
# password: ENC(+QKYnI6gAYu1SbLaZQTkZA==)
enabled: true
data:
redis:
# Redis默认情况下有16个分片(库)这里配置具体使用的分片默认是0
@@ -68,6 +66,23 @@ spring:
# 上传文件总的最大值
max-request-size: 10240MB
management:
endpoints:
web:
exposure:
include: health,info
endpoint:
health:
show-details: always
group:
readiness:
include: discoveryComposite,ping,refreshScope
health:
redis:
enabled: false
db:
enabled: false
mybatis-plus:
configuration:
map-underscore-to-camel-case: true