spring 启动管理员禁用来自 UI 的特定选项卡
spring boot admin disable specific tabes from UI
我想从 Spring 引导管理 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
在您的应用程序中禁用这些端点
正如@joshiste 指出的那样,您必须配置您的应用程序,而不是 spring 引导管理员本身。
警告小心你公开的端点!!
您可以通过设置属性
来配置显示哪些 tabs/endpoints
management.endpoints.web.exposure.exclude
management.endpoints.web.exposure.include
您可以从{health、info、metrics 等}
中指定逗号分隔列表select
要获得更完整的列表@see https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html#production-ready-endpoints
我想从 Spring 引导管理 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
在您的应用程序中禁用这些端点
正如@joshiste 指出的那样,您必须配置您的应用程序,而不是 spring 引导管理员本身。
警告小心你公开的端点!!
您可以通过设置属性
来配置显示哪些 tabs/endpointsmanagement.endpoints.web.exposure.exclude
management.endpoints.web.exposure.include
您可以从{health、info、metrics 等}
中指定逗号分隔列表select要获得更完整的列表@see https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html#production-ready-endpoints