consul的server.json配置为
{
"watches": [{
"type": "services",
"handler_type": "http",
"http_handler_config": {
"path": "http://localhost:5100/reload",
"method": "GET",
"tls_skip_verify":true
}
}]
}
监听服务变化,调用接口,通知路由更新.但总是报400的错误.可是这个通知接口,我自己浏览器可以调用成功啊.