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

解决

posted @ 2018-09-25 16:52  TracyRanch  阅读(751)  评论(0编辑  收藏  举报