如何更改spring-boot-actuator 2.3.0的千分表版本

发布于 2025-02-05 02:20:35 字数 485 浏览 2 评论 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不羁少年 2025-02-12 02:20:35

您应该升级启动,以便它带入最新的千分尺。
您可以迫使构建系统解决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.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文