Ribbon 结合 Resttemplate自定义负载均衡算法
public interface LoadBalance { //获取Eureka的服务总数 ServiceInstance instances(List<ServiceInstance> serviceInstances);}@Service(value = "loadBalance")public class MyLb implements LoadBalance { private AtomicInteger atomicInteger = new Ato
原创
2020-08-06 23:40:53 ·
374 阅读 ·
0 评论