说明:

  如果我们的spring-boot项目中添加了spring-boot-starter-actuator ,项目启动后我们可以通过 http://localhost:8080/actuator/beans 查看启动的项目中加载了多少beans

问题:

   晚上测试时候发现报错,但是http://localhost:8080/actuator/health可以访问,如下图

         【随手记录】关于 actuator/beans 不能访问

       【随手记录】关于 actuator/beans 不能访问

解决:

  原因是Actuator只暴露了health和info端点,访问其他端点需要额外配置

      #开放全部

   management.endpoints.web.exposure.include=*

      调整后(这里火狐浏览器可以友好的把json格式调整)

      【随手记录】关于 actuator/beans 不能访问

相关文章:

  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2021-08-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案