【问题标题】:spring boot admin disable specific tabes from UIspring boot admin 禁用 UI 中的特定标签
【发布时间】:2018-07-12 08:53:55
【问题描述】:

我想从 Spring Boot 管理 UI 中禁用特定选项卡。 有没有办法做到这一点?可能正在使用某些属性或任何东西。 我的 SBA 服务器属性如下:

spring.boot.admin.context-path=/admin
spring.boot.admin.ui.title=Admin
server.address=localhost
server.port=6789
spring.security.user.name=user
spring.security.user.password=Admin123

【问题讨论】:

    标签: spring-boot-admin


    【解决方案1】:

    在您的应用程序中禁用这些端点

    【讨论】:

    • 你能告诉我可以做到这一点的属性吗?
    【解决方案2】:

    正如@joshiste 指出的那样,您必须配置您的应用程序而不是 spring boot admin 本身。

    警告要小心你暴露的端点!

    您可以通过设置属性来配置显示哪些选项卡/端点

    management.endpoints.web.exposure.exclude
    management.endpoints.web.exposure.include
    

    您可以从{health, info, metrics, etc.}中选择一个逗号分隔的列表

    更完整的列表@see https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html#production-ready-endpoints

    【讨论】:

      猜你喜欢
      • 2022-08-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-24
      • 1970-01-01
      • 1970-01-01
      • 2017-09-27
      • 1970-01-01
      相关资源
      最近更新 更多