随笔分类 - springcloud
摘要:1.依赖 <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> </dependency> 2.配置文件 server.
阅读全文
摘要:1.依赖 <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> </dependency> 2.配置文件 serv
阅读全文
摘要:1.configserver引入bus依赖 <!--引入bus依赖--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-bus-amqp</artifactId>
阅读全文
摘要:1.依赖 <!--引入consul--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-consul-discovery</artifactId> </depend
阅读全文
摘要:1.依赖 <!--引入consul--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-consul-discovery</artifactId> </depend
阅读全文
摘要:@Configuration @Slf4j public class CustomGlobalFilter implements GlobalFilter, Ordered { @Override public Mono<Void> filter(ServerWebExchange exchange
阅读全文
摘要:1.依赖 <!--引入gateway网关依赖--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</artifactId> </dependency
阅读全文
摘要:1.依赖 <!--引入hystrix--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix</artifactId> </depend
阅读全文
摘要:1.依赖 <!--引入open feign依赖--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> </depende
阅读全文
摘要:1.依赖 consul依赖中包含ribbon依赖无需额外引入 2.基于discovery Client形式调用 @RequestMapping("/user/showProductMsg") public List<ServiceInstance> showProductMsg() { //disc
阅读全文
摘要:1.服务productservices @RestController public class ProductController { @RequestMapping("/product/findAll") public Map findAll(){ Map map = new HashMap()
阅读全文
摘要:1.版本说明 springboot 2.2.5.RELEASE springcloud Hoxton.SR6 2.依赖 <!--引入consul client依赖--> <dependency> <groupId>org.springframework.cloud</groupId> <artifa
阅读全文
摘要:1.下载安装包 https://www.consul.io/downloads 2.安装 consul agent -dev 3.访问 http://localhost:8500
阅读全文
摘要:1.版本说明 springboot 2.2.5.RELEASE springcloud Hoxton.SR6 2.依赖 <!--引入 eureka client--> <dependency> <groupId>org.springframework.cloud</groupId> <artifac
阅读全文
摘要:1.版本说明 springboot 2.2.5.RELEASE springcloud Hoxton.SR6 2.依赖 <!--引入eurekaserver组件的依赖--> <dependency> <groupId>org.springframework.cloud</groupId> <arti
阅读全文
摘要:1.版本说明 springboot 2.2.5.RELEASE springcloud Hoxton.SR6 2.依赖 <properties> <java.version>1.8</java.version> <!--springcloud中使用具体版本号--> <spring.cloud.ver
阅读全文
浙公网安备 33010602011771号