Merge remote-tracking branch 'origin/main'

This commit is contained in:
dzl 2025-05-28 09:49:19 +08:00
commit f23374692c
23 changed files with 213 additions and 5 deletions

View File

@ -80,6 +80,10 @@
<version>5.8.26</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
<profiles>
<!--开发环境-->

View File

@ -0,0 +1,14 @@
package com.cdzy.gateway.component;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;
@Component
public class CustomHealthIndicator implements HealthIndicator {
@Override
public Health health() {
// 检查逻辑
return Health.up().withDetail("service", "available").build();
}
}

View File

@ -97,7 +97,7 @@ sa-token:
# 是否输出操作日志
is-log: true
# 开启检查的登陆状态的开关
is-check: false
is-check: true
# 自定义加解密配置
cdzy:
@ -107,3 +107,12 @@ cdzy:
enable: true
response-switch:
enable: false
management:
endpoints:
web:
exposure:
include: health,info
endpoint:
health:
show-details: always

View File

@ -91,6 +91,11 @@
<artifactId>commons-pool2</artifactId>
<version>2.11.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
<profiles>
<!--开发环境-->

View File

@ -0,0 +1,14 @@
package org.cdzy.gather.component;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;
@Component
public class CustomHealthIndicator implements HealthIndicator {
@Override
public Health health() {
// 检查逻辑
return Health.up().withDetail("service", "available").build();
}
}

View File

@ -9,7 +9,7 @@ spring:
time-zone: GMT+8
cloud:
nacos:
server-addr: 127.0.0.1:8848 # nacos
server-addr: 192.168.2.226:8848 # nacos
username: nacos
password: nacos
kafka:
@ -36,3 +36,11 @@ mqtt:
# max-idle: 10
# min-idle: 3
# test-on-borrow: true
management:
endpoints:
web:
exposure:
include: health,info
endpoint:
health:
show-details: always

View File

@ -174,6 +174,10 @@
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
<profiles>
<!--开发环境-->

View File

@ -0,0 +1,14 @@
package com.cdzy.ebikemaintenance.component;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;
@Component
public class CustomHealthIndicator implements HealthIndicator {
@Override
public Health health() {
// 检查逻辑
return Health.up().withDetail("service", "available").build();
}
}

View File

@ -86,3 +86,12 @@ minio:
geo-coding:
api-url: https://restapi.amap.com/v3/geocode
access-key: 14c06210d417b30fb8a66d27b0b31a62
management:
endpoints:
web:
exposure:
include: health,info
endpoint:
health:
show-details: always

View File

@ -172,6 +172,11 @@
<version>1.10.8</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
<profiles>
<!--开发环境-->

View File

@ -0,0 +1,14 @@
package com.cdzy.ebikeoperate.component;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;
@Component
public class CustomHealthIndicator implements HealthIndicator {
@Override
public Health health() {
// 检查逻辑
return Health.up().withDetail("service", "available").build();
}
}

View File

@ -81,3 +81,12 @@ minio:
access-key: eQtGmQBEsGxNHrTd7AkJ # 访问密钥
secret-key: Zg6X6j0kgUT1fGsGSgoCZWu6fgL8F3Kw1FfoX4yJ # 私有密钥
bucket-name: test
management:
endpoints:
web:
exposure:
include: health,info
endpoint:
health:
show-details: always

View File

@ -175,6 +175,11 @@
<version>1.10.8</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
<profiles>
<!--开发环境-->

View File

@ -0,0 +1,14 @@
package com.cdzy.orders.component;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;
@Component
public class CustomHealthIndicator implements HealthIndicator {
@Override
public Health health() {
// 检查逻辑
return Health.up().withDetail("service", "available").build();
}
}

View File

@ -92,3 +92,12 @@ minio:
access-key: eQtGmQBEsGxNHrTd7AkJ # 访问密钥
secret-key: Zg6X6j0kgUT1fGsGSgoCZWu6fgL8F3Kw1FfoX4yJ # 私有密钥
bucket-name: test
management:
endpoints:
web:
exposure:
include: health,info
endpoint:
health:
show-details: always

View File

@ -147,6 +147,11 @@
<version>1.10.8</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
<profiles>

View File

@ -69,3 +69,12 @@ task-scheduler-pool:
geo-coding:
api-url: https://apis.map.qq.com/ws/geocoder/v1
access-key: BECBZ-EJIEQ-LUU5N-B5ISQ-3TLMZ-BXFLG
management:
endpoints:
web:
exposure:
include: health,info
endpoint:
health:
show-details: always

View File

@ -118,6 +118,11 @@
<artifactId>jts-core</artifactId>
<version>1.19.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
<profiles>
<!--开发环境-->

View File

@ -0,0 +1,14 @@
package com.cdzy.ebikereport.component;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;
@Component
public class CustomHealthIndicator implements HealthIndicator {
@Override
public Health health() {
// 检查逻辑
return Health.up().withDetail("service", "available").build();
}
}

View File

@ -47,3 +47,12 @@ spring:
max-idle: 10
# 连接池中的最小空闲连接
min-idle: 0
management:
endpoints:
web:
exposure:
include: health,info
endpoint:
health:
show-details: always

View File

@ -141,6 +141,11 @@
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
<profiles>
<!--开发环境-->

View File

@ -0,0 +1,14 @@
package com.cdzy.user.component;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;
@Component
public class CustomHealthIndicator implements HealthIndicator {
@Override
public Health health() {
// 检查逻辑
return Health.up().withDetail("service", "available").build();
}
}

View File

@ -71,3 +71,13 @@ sa-token:
# 是否输出操作日志
is-log: true
management:
endpoints:
web:
exposure:
include: health,info
endpoint:
health:
show-details: always