为 Spring Boot 2.6.4 替换 HealthAggregator
Replace HealthAggregator for Spring Boot 2.6.4
我想迁移使用此依赖项的旧 Spring 项目:
org.springframework.boot.actuate.health.HealthAggregator
org.springframework.boot.actuate.health.OrderedHealthAggregator
..........
@Autowired
private final HealthAggregator healthAggregator = new OrderedHealthAggregator();
此 Class 需要导入:
'org.springframework.boot:spring-boot-actuator-autoconfigure:2.0.2.RELEASE'
我试过使用最新版本Spring Boot 2.6.4:
import org.springframework.boot.actuate.health.StatusAggregator;
import org.springframework.boot.actuate.health.OrderedHealthAggregator;
但我找不到哪个 class 正在替换 OrderedHealthAggregator
你知道在 Spring Boot 2.6.4 中应该使用哪个 class 吗?
OrderedHealthAggregator
已替换为 SimpleStatusAggregator
。
我想迁移使用此依赖项的旧 Spring 项目:
org.springframework.boot.actuate.health.HealthAggregator
org.springframework.boot.actuate.health.OrderedHealthAggregator
..........
@Autowired
private final HealthAggregator healthAggregator = new OrderedHealthAggregator();
此 Class 需要导入:
'org.springframework.boot:spring-boot-actuator-autoconfigure:2.0.2.RELEASE'
我试过使用最新版本Spring Boot 2.6.4:
import org.springframework.boot.actuate.health.StatusAggregator;
import org.springframework.boot.actuate.health.OrderedHealthAggregator;
但我找不到哪个 class 正在替换 OrderedHealthAggregator
你知道在 Spring Boot 2.6.4 中应该使用哪个 class 吗?
OrderedHealthAggregator
已替换为 SimpleStatusAggregator
。