zoukankan      html  css  js  c++  java
  • 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

    成长的乐趣,在于分享!
    大龄程序员,一路走来,感慨颇多。闲暇时写写字,希望能给同行人一点帮助。
    本文版权归作者growithus和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    P3970 [TJOI2014]上升子序列
    受欢迎的牛(Tarjan缩点模板)
    Y15BeTa的乱搞方法(占坑待填)
    Luogu P4145 上帝造题的七分钟2 / 花神游历各国
    Luogu P1525 【关押罪犯】
    Luogu P1077 摆花 NOIP2012pjT3
    Nowcoder deco的abs
    CSP-S前的芝士清单
    普天同庆
    线段树区改区查标记永久化板子
  • 原文地址:https://www.cnblogs.com/growithus/p/11012224.html
Copyright © 2011-2022 走看看