如何更改spring-boot-actuator 2.3.0的千分表版本
在我们的项目中,我们使用Spring-Boot 2.3.0.Release。
默认,弹簧启动器是2.3.0,它使用1.5.1微米核。 但是,我希望它使用1.9.0千分尺,因为我想使用1.9.0千分尺型插入。 我用Maven加载了1.9.0微米核,但这没有道理。
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-core</artifactId>
<version>1.9.0</version>
</dependency>
我们不允许更改我们的Spring-boot版本,因此我想以2.3.0.Release Spring-Boot-Actuator更改千分尺的版本。接下来我应该做什么?
In our project, we use spring-boot 2.3.0.RELEASE.
Default, spring-boot-actuator is the 2.3.0 and it uses the 1.5.1 micrometer-core.
However, I want it use the 1.9.0 micrometer because I want to use the 1.9.0 micrometer-registry-influx.
I loaded the 1.9.0 micrometer-core in maven ,but it makes no sense.
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-core</artifactId>
<version>1.9.0</version>
</dependency>
Our spring-boot version is not to be allowed to change, so I want to change the micrometer's version in 2.3.0.RELEASE spring-boot-actuator.What should I do next?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该升级启动,以便它带入最新的千分尺。
您可以迫使构建系统解决1.9.x,但可能需要进行多个依赖项(例如:千分钟核,XYZ-REGISTRIST等)。
You should upgrade Boot so that it will bring in the latest Micrometer.
You can force your build system to resolve 1.9.x but you might need to do it for multiple dependencies (e.g.: micrometer-core, xyz-registry, etc.)