替换 Spring Boot 2.6.4 的 HealthAggregator
我想迁移使用此依赖项的旧 Spring 项目:
org.springframework.boot.actuate.health.HealthAggregator
org.springframework.boot.actuate.health.OrderedHealthAggregator
..........
@Autowired
private final HealthAggregator healthAggregator = new OrderedHealthAggregator();
该类需要导入:
'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;
但我找不到哪个类正在替换 OrderedHealthAggregator
你知道Spring Boot 2.6.4中应该使用哪个类吗?
I want to migrate old Spring project which is using this dependency:
org.springframework.boot.actuate.health.HealthAggregator
org.springframework.boot.actuate.health.OrderedHealthAggregator
..........
@Autowired
private final HealthAggregator healthAggregator = new OrderedHealthAggregator();
This Class requires import of:
'org.springframework.boot:spring-boot-actuator-autoconfigure:2.0.2.RELEASE'
I tried to use the latest version in version Spring Boot 2.6.4:
import org.springframework.boot.actuate.health.StatusAggregator;
import org.springframework.boot.actuate.health.OrderedHealthAggregator;
But I can't find which class is replacing OrderedHealthAggregator
Do you know which class should be used in Spring Boot 2.6.4?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
OrderedHealthAggregator
已替换为SimpleStatusAggregator
。OrderedHealthAggregator
was replaced bySimpleStatusAggregator
.