IDEA Actuator选项卡页面出现Failed to retrieve application beans snapshot: javax.management.instanceNotFoundException: org.springframework.boot:type=Endpoint,name=Beans,*

环境:
SpringBoot3.5.11
IntelliJ IDEA 2023.3.6 (Ultimate Edition)
implementation("org.springframework.boot:spring-boot-starter-actuator:3.5.0-SNAPSHOT")

问题


无法查看端点的信息。

导致的原因就是beans和mappings端点未开启的缘故导致的。

解决方案:

management:
  server:
    address: 127.0.0.1
    port: 8089
  endpoints:
    access:
      max-permitted: read-only
    jmx:
      exposure:
        include: "*"  // 或者 include=health,beans,mappings


application.yml文件里添加以上配置,重启应用后,应该就能看到了。

参考资料:

SpringBoot3可用端点
通过 HTTP 进行监控和管理
通过 JMX 进行监控和管理

https://stackoverflow.com/questions/54929656/intellij-idea-not-showing-anything-endpoints-tab-failed-to-retrieve-applicatio

posted @ 2025-05-08 15:50  星小梦  阅读(314)  评论(0)    收藏  举报