justaprogrammer
justaprogrammer
对啊,好友显示怎么为0个了~ 试过python2和python3都是这样的 前两天在mac上还挺好,今天换windows和linux都是这个结果, 微信改接口了?
> eureka、client版本为springboot 2.0.x,禁用服务时报: > java.io.FileNotFoundException: http://192.168.1.8:8081/service-registry/instance-status 你搜索example里的demo,可以发现 service-registry/instance-status 这个接口的实现来自ServiceRegistryEndpoint类 较低的版本里,可能没有这个类的实现 所以,我建议,这里摘除服务可以使用https://github.com/Netflix/eureka/wiki/Eureka-REST-operations 我们团队是使用这个接口来操作的 Take instance out of service | PUT /eureka/v2/apps/appID/instanceID/status?value=OUT_OF_SERVICE | HTTP Code:* 200 on success* 500 on failure --...
重写一下那个enable和disable调用的controller,可能更通用一些. ``` @RequestMapping(value = "status/{appName}", method = RequestMethod.POST) public ResultMap servStatus(@PathVariable String appName, String instanceId, String status){ log.info("appName:{} instanceId:{} status:{} defaultZone:{}", new Object[] {appName, instanceId, status,defaultZone}); //拼凑url String url= defaultZone;...
> servStatus () 这个方法重写的是哪个类里面的 EurekaClientController