【发布时间】:2020-08-10 16:19:35
【问题描述】:
我的spring application.yaml:
management:
...
endpoint:
health:
show-details: ALWAYS
info:
enabled: false
health:
diskspace:
path: "some-path"
threshold: 536870912
我想扩展/包装org.springframework.boot.actuate.system.DiskSpaceHealthIndicator 以添加一些特定于应用程序的行为。有没有办法配置我的应用程序以使用我自己的自定义版本,例如com.acme.myapp.CustomDiskSpaceHealthIndicator 而不是 org.springframework.boot.actuate.system.DiskSpaceHealthIndicator?
【问题讨论】:
标签: java spring spring-boot spring-boot-actuator