首页 > 编程语言 > 详细

spring cloud-config的client中/refresh的端点报错401

时间:2018-09-25 17:14:11      阅读:321      评论:0      收藏:0      [点我收藏+]

post访问/refresh端口报错如下

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

 

配置文件application.yml添加配置

management:
  security:
    enabled: false

解决

spring cloud-config的client中/refresh的端点报错401

原文:https://www.cnblogs.com/oldzhang1222/p/9700415.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!