spring boot admin抛出"status":401,"error":"Unauthorized"异常

打开spring boot admin的监控平台发现其监控的服务明细打开均抛出异常:

 

Error: {"timestamp":1502749349892,"status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource.","path":"/metrics"}

Error: {"timestamp":1502749409302,"status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource.","path":"/env"}


Error:
{
  "timestamp": 1502749421564,
  "status": 401,
  "error": "Unauthorized",
  "message": "Full authentication is required to access this resource.",
  "path": "/jolokia/"
}

Error: {"timestamp":1502749435545,"status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource.","path":"/dump"}

Error: {"timestamp":1502749445132,"status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource.","path":"/trace"}

 

这些功能涉及敏感信息,被监控端需要安全认证才能访问对应的监控点,添加配置可规避此异常:

 

management.security.enabled=false

 

posted @ 2017-08-15 06:25  maventalker  阅读(5792)  评论(0编辑  收藏  举报