摘要: Ribbon使用 ribbon在使用上非常简单,仅仅只需要在配置类上加入配置即可 @Bean @LoadBalanced public RestTemplate restTemplate(){ return new RestTemplate(); } 调用时,直接使用在eureka中注册的服务名进行 阅读全文
posted @ 2021-07-13 07:33 镇屌 阅读(172) 评论(0) 推荐(0) 编辑