今天心血来潮看一下spring监控
访问/beans 等敏感的信息时候报错java
Tue Mar 07 21:18:57 GMT+08:00 2017
There was an unexpected error (type=Unauthorized, status=401).
Full authentication is required to access this resource.spring
application.properties添加配置参数app
management.security.enabled=falseui
ID | 描述 | 敏感(Sensitive) |
---|---|---|
autoconfig | 显示一个auto-configuration的报告,该报告展现全部auto-configuration候选者及它们被应用或未被应用的缘由 | true |
beans | 显示一个应用中全部Spring Beans的完整列表 | true |
configprops | 显示一个全部@ConfigurationProperties的整理列表 | true |
dump | 执行一个线程转储 | true |
env | 暴露来自Spring ConfigurableEnvironment的属性 | true |
health | 展现应用的健康信息(当使用一个未认证链接访问时显示一个简单的’status’,使用认证链接访问则显示所有信息详情) | false |
info | 显示任意的应用信息 | false |
metrics | 展现当前应用的’指标’信息 | true |
mappings | 显示一个全部@RequestMapping路径的整理列表 | true |
shutdown | 容许应用以优雅的方式关闭(默认状况下不启用) | true |
trace | 显示trace信息(默认为最新的一些HTTP请求) | true |
网上找不到答案仍是要看官方文档this