feat: 添加actuator支持

This commit is contained in:
曹鹏飞 2025-09-25 11:49:59 +08:00
parent c3799fe052
commit 67623100b0
9 changed files with 77 additions and 6 deletions

View File

@ -34,3 +34,11 @@ management:
exposure:
include: '*'
enabled-by-default: on
endpoint:
health:
show-details: always
health:
db:
enabled: true
redis:
enabled: true

View File

@ -44,6 +44,10 @@
<groupId>com.github.loki4j</groupId>
<artifactId>loki-logback-appender</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>

View File

@ -34,3 +34,17 @@ sa-token:
logging:
level:
root: info
management:
endpoints:
web:
exposure:
include: '*'
enabled-by-default: on
endpoint:
health:
show-details: always
health:
db:
enabled: true
redis:
enabled: true

View File

@ -31,4 +31,13 @@ management:
endpoints:
web:
exposure:
include: "*"
include: '*'
enabled-by-default: on
endpoint:
health:
show-details: always
health:
db:
enabled: true
redis:
enabled: true

View File

@ -50,6 +50,10 @@
<groupId>org.springframework.ldap</groupId>
<artifactId>spring-ldap-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
<build>

View File

@ -20,3 +20,17 @@ spring:
logging:
level:
root: info
management:
endpoints:
web:
exposure:
include: '*'
enabled-by-default: on
endpoint:
health:
show-details: always
health:
db:
enabled: true
redis:
enabled: true

View File

@ -34,6 +34,10 @@
<groupId>com.github.loki4j</groupId>
<artifactId>loki-logback-appender</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>

View File

@ -24,3 +24,17 @@ spring:
logging:
level:
root: info
management:
endpoints:
web:
exposure:
include: '*'
enabled-by-default: on
endpoint:
health:
show-details: always
health:
db:
enabled: true
redis:
enabled: true

View File

@ -30,7 +30,7 @@
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<lombok.version>1.18.34</lombok.version>
<lombok.version>1.18.38</lombok.version>
<spring-cloud.version>2023.0.1</spring-cloud.version>
<spring-cloud-alibaba.version>2023.0.1.0</spring-cloud-alibaba.version>
<hutool-all.version>5.8.36</hutool-all.version>