码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2018-09-25 17:30:34      阅读:282      评论:0      收藏:0      [点我收藏+]

标签:color   app   enable   lin   ade   res   端口   error   path   

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

标签:color   app   enable   lin   ade   res   端口   error   path   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!