curl -X POST http://localhost:8881/bus/refresh Unauthorized Full authentication is required

来源:互联网 发布:qq在mac上截图快捷键 编辑:程序博客网 时间:2024/06/06 17:37

在用Spring Cloud Bus、kafka实现config-server自动刷新配置的时候,执行命令:

curl -X POST http://localhost:8881/bus/refresh

报如下错误:

{"timestamp":1513070580796,"status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource.","path":"/bus/refresh"}campus-080-239

先关闭验证,在application.properties中加入:

#关闭验证management.security.enabled=false
阅读全文
0 0