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> <version>5.8.26</version>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies> </dependencies>
<profiles> <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-log: true
# 开启检查的登陆状态的开关 # 开启检查的登陆状态的开关
is-check: false is-check: true
# 自定义加解密配置 # 自定义加解密配置
cdzy: cdzy:
@ -106,4 +106,13 @@ cdzy:
request-switch: request-switch:
enable: true enable: true
response-switch: response-switch:
enable: false enable: false
management:
endpoints:
web:
exposure:
include: health,info
endpoint:
health:
show-details: always

View File

@ -91,6 +91,11 @@
<artifactId>commons-pool2</artifactId> <artifactId>commons-pool2</artifactId>
<version>2.11.1</version> <version>2.11.1</version>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies> </dependencies>
<profiles> <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 time-zone: GMT+8
cloud: cloud:
nacos: nacos:
server-addr: 127.0.0.1:8848 # nacos server-addr: 192.168.2.226:8848 # nacos
username: nacos username: nacos
password: nacos password: nacos
kafka: kafka:
@ -35,4 +35,12 @@ mqtt:
# max-total: 20 # max-total: 20
# max-idle: 10 # max-idle: 10
# min-idle: 3 # min-idle: 3
# test-on-borrow: true # 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> <artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies> </dependencies>
<profiles> <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: geo-coding:
api-url: https://restapi.amap.com/v3/geocode api-url: https://restapi.amap.com/v3/geocode
access-key: 14c06210d417b30fb8a66d27b0b31a62 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> <version>1.10.8</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies> </dependencies>
<profiles> <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 # 访问密钥 access-key: eQtGmQBEsGxNHrTd7AkJ # 访问密钥
secret-key: Zg6X6j0kgUT1fGsGSgoCZWu6fgL8F3Kw1FfoX4yJ # 私有密钥 secret-key: Zg6X6j0kgUT1fGsGSgoCZWu6fgL8F3Kw1FfoX4yJ # 私有密钥
bucket-name: test 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> <version>1.10.8</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies> </dependencies>
<profiles> <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 # 访问密钥 access-key: eQtGmQBEsGxNHrTd7AkJ # 访问密钥
secret-key: Zg6X6j0kgUT1fGsGSgoCZWu6fgL8F3Kw1FfoX4yJ # 私有密钥 secret-key: Zg6X6j0kgUT1fGsGSgoCZWu6fgL8F3Kw1FfoX4yJ # 私有密钥
bucket-name: test 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> <version>1.10.8</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies> </dependencies>
<profiles> <profiles>

View File

@ -68,4 +68,13 @@ task-scheduler-pool:
awaitTerminationSeconds: 30 awaitTerminationSeconds: 30
geo-coding: geo-coding:
api-url: https://apis.map.qq.com/ws/geocoder/v1 api-url: https://apis.map.qq.com/ws/geocoder/v1
access-key: BECBZ-EJIEQ-LUU5N-B5ISQ-3TLMZ-BXFLG 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> <artifactId>jts-core</artifactId>
<version>1.19.0</version> <version>1.19.0</version>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies> </dependencies>
<profiles> <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 max-idle: 10
# 连接池中的最小空闲连接 # 连接池中的最小空闲连接
min-idle: 0 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> <artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies> </dependencies>
<profiles> <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 is-log: true
management:
endpoints:
web:
exposure:
include: health,info
endpoint:
health:
show-details: always