最近,我们将spring版本升级到2.7.2,spring框架版本升级到5.3.22。从那以后,我们在其中一个应用程序中看到了这个错误。
“需要一个无法找到的'io.micrometer.core.instrument.MeterRegistry‘类型的bean。”
Spring文档指出,如果存在一个名为微米注册表-<?>的依赖项,那么它将自动生成所需的MeterRegistry。我们在out项目中确实有这种依赖性。但这是不可能的。
我们在application.yml中确实有以下属性。但是执行器也不能工作。
management:
metrics:
export:
statsd:
enabled: true
flavor: datadog
host: localhost
port: 8125
endpoints:
web:
exposure:
include: "*"
metrics:
enabled: true有人能告诉我我在这里错过了什么吗?
发布于 2022-08-29 20:35:38
你需要spring-boot-starter-actuator在你的类路径。
https://stackoverflow.com/questions/73472639
复制相似问题