Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
f23374692c
@ -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>
|
||||||
<!--开发环境-->
|
<!--开发环境-->
|
||||||
|
|||||||
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -97,7 +97,7 @@ sa-token:
|
|||||||
# 是否输出操作日志
|
# 是否输出操作日志
|
||||||
is-log: true
|
is-log: true
|
||||||
# 开启检查的登陆状态的开关
|
# 开启检查的登陆状态的开关
|
||||||
is-check: false
|
is-check: true
|
||||||
|
|
||||||
# 自定义加解密配置
|
# 自定义加解密配置
|
||||||
cdzy:
|
cdzy:
|
||||||
@ -107,3 +107,12 @@ cdzy:
|
|||||||
enable: true
|
enable: true
|
||||||
response-switch:
|
response-switch:
|
||||||
enable: false
|
enable: false
|
||||||
|
|
||||||
|
management:
|
||||||
|
endpoints:
|
||||||
|
web:
|
||||||
|
exposure:
|
||||||
|
include: health,info
|
||||||
|
endpoint:
|
||||||
|
health:
|
||||||
|
show-details: always
|
||||||
@ -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>
|
||||||
<!--开发环境-->
|
<!--开发环境-->
|
||||||
|
|||||||
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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:
|
||||||
@ -36,3 +36,11 @@ mqtt:
|
|||||||
# 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
|
||||||
@ -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>
|
||||||
<!--开发环境-->
|
<!--开发环境-->
|
||||||
|
|||||||
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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
|
||||||
|
|||||||
@ -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>
|
||||||
<!--开发环境-->
|
<!--开发环境-->
|
||||||
|
|||||||
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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
|
||||||
|
|||||||
@ -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>
|
||||||
<!--开发环境-->
|
<!--开发环境-->
|
||||||
|
|||||||
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -69,3 +69,12 @@ task-scheduler-pool:
|
|||||||
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
|
||||||
@ -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>
|
||||||
<!--开发环境-->
|
<!--开发环境-->
|
||||||
|
|||||||
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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
|
||||||
@ -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>
|
||||||
<!--开发环境-->
|
<!--开发环境-->
|
||||||
|
|||||||
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -71,3 +71,13 @@ sa-token:
|
|||||||
# 是否输出操作日志
|
# 是否输出操作日志
|
||||||
is-log: true
|
is-log: true
|
||||||
|
|
||||||
|
management:
|
||||||
|
endpoints:
|
||||||
|
web:
|
||||||
|
exposure:
|
||||||
|
include: health,info
|
||||||
|
endpoint:
|
||||||
|
health:
|
||||||
|
show-details: always
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user