Full authentication is required to access this resource

在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的一系列健康监控


    org.springframework.boot
    spring-boot-starter-actuator

你可能感兴趣的:(日常问题)