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

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

解决

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