有人可以给我一个在 Spring Boot 应用程序版本 3.1.5 上启用 /actuator/jolokia 的参考吗

问题描述 投票:0回答:2

我想在 Spring Boot 应用程序上启用 jolokia,但似乎我无法通过 jolokia-core 依赖项来做到这一点https://mvnrepository.com/artifact/org.jolokia/jolokia-core。 我能够使用 Spring Boot 2.x.x 版本来做到这一点。启用此端点需要进行任何更改吗?

在 2.x.x 上启用 jolokia

spring-boot spring-boot-actuator jolokia
2个回答
0
投票

Spring Boot 取消了对 Jolokia 的支持,因为 Jolokia 尚不支持 Servlet API 5.0(参见问题)。 Jolokia 将在 2.0 版中添加对新 Servlet API 的支持(参见问题)。

因此回答您的问题:目前无法在 Spring Boot 3.x 中启用

/actuator/jolokia
端点。您必须等到 Jolokia 发布 v2.0,然后才能获得新的 Spring Boot 版本来重新启用支持。


0
投票
Add this dependency to your class path:
<dependency>
    <groupId>org.jolokia</groupId>
    <artifactId>jolokia-support-spring</artifactId>
    <version>2.0.0</version>
</dependency>
© www.soinside.com 2019 - 2024. All rights reserved.