您的位置:首页 > 产品设计 > UI/UE

Full authentication is required to access this resource

2017-08-08 17:25 633 查看
在Springcloud中的组件config中,客户端在配置文件中心变更配置文件后,需要post调用系统的refresh方法,返回错误

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

则需要在配置文件properties中新增:

#忽略权限拦截
management.security.enabled=false


补充:在原有依赖中新增如下依赖:这是springBoot的一系列健康监控

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐