![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring cloud
超级浣熊--1
实践检验真理
展开
-
Eureka的负载均衡
1搭建四个项目一个eureka注册中心一个Template服务两个服务2 搭建eureka#配置文件server: port: 8090spring: application: name: servereureka: instance: hostname: localhost client: fetch-registry: false register-with-eureka: false server: enable-self原创 2021-03-29 16:38:52 · 3397 阅读 · 0 评论 -
spring cloud Feign使用
1引入jar包<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-feign</artifactId> <version>1.4.1.RELEASE</version></dependency>2在启动类需要添加的注解@SpringBootApplic原创 2021-03-29 16:21:30 · 63 阅读 · 0 评论