spring boot admin disable specific tabes from UI

倖福魔咒の 提交于 2019-12-10 11:54:23

问题


I want to disable specific tabs from Spring boot admin UI. Is there any way to achieve this ? might be using some property or anything. My SBA server properties are as follows :

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

回答1:


Disable those endpoints in your applications




回答2:


As @joshiste pointed out you have to configure your applications not spring boot admin itself.

Warning be careful what endpoints you expose!!

You can configure which tabs/endpoints are displayed by setting the properties

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

You can specify a comma separated list select from {health, info, metrics, etc.}

For a fuller list @see https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html#production-ready-endpoints



来源:https://stackoverflow.com/questions/51301232/spring-boot-admin-disable-specific-tabes-from-ui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!