
Spring Cloud Alibaba
文章平均质量分 80
大象_
技术,是服务于人而不是局限住人的。
写博客一是记录一些开发笔记以及思路,二是希望自己整理的笔记和心得能帮助到遇到问题的开发。
展开
-
SpringCloud Alibaba Seata:ERROR io.seata.core.rpc.netty.NettyClientChannelManager - Failed to get av
SpringCloud Alibaba Seata:ERROR io.seata.core.rpc.netty.NettyClientChannelManager - Failed to get available servers:2022-01-12 13:45:05.333 [timeoutChecker_1] ERROR io.seata.core.rpc.netty.NettyClientChannelManager - Failed to get available servers: org..原创 2022-01-13 22:00:00 · 4762 阅读 · 0 评论 -
OpenFeign/Feign:Spring Cloud项目 使用feign 实现远程服务接口调用(@FeignClient)
OpenFeign/Feign:Spring Cloud项目 使用feign 实现远程服务接口调用(@FeignClient)一、简介SpringCloud 通过 OpenFeign/Feign 服务调用方式OpenFeign:类似于Dubbo,像调用本地方法一样调用远程服务feign原理:代理.ribbon原理:拦截器:为RestTemplate增加了@LoanBalanced 注解后,实际上通过配置,为RestTemplate注入负载均衡拦截器,让负载均衡器选择根据其对应的策略选择合适的服务原创 2020-10-27 16:03:14 · 654 阅读 · 0 评论 -
《Sentinel 服务限流、降级》
《Sentinel服务限流、降级》一、准备服务消费者(端口8080)1、添加依赖。<!--引入Sentinel依赖--><dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-core</artifactId><version&g...原创 2020-08-19 18:58:12 · 203 阅读 · 0 评论 -
《通过 Nacos Server 和 spring-cloud-starter-alibaba-nacos-discovery 实现 服务发现 - 服务消费 - ribbon负载均衡》
《通过 Nacos Server 和 spring-cloud-starter-alibaba-nacos-discovery 实现 服务发现 - 服务消费 - ribbon负载均衡》一、准备服务消费者(端口8080)1、添加依赖。<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="h...原创 2020-08-19 18:58:35 · 386 阅读 · 0 评论 -
《通过 Nacos Server 和 spring-cloud-starter-alibaba-nacos-discovery 实现 服务发现 - 服务提供》
《通过 Nacos Server 和 spring-cloud-starter-alibaba-nacos-discovery 实现 服务发现 - 服务提供》1、添加依赖。<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0...原创 2020-08-17 20:30:20 · 1094 阅读 · 0 评论 -
《通过 Nacos Server 和 spring-cloud-starter-alibaba-nacos-discovery 实现 服务发现 - 服务消费》
《通过 Nacos Server 和 spring-cloud-starter-alibaba-nacos-discovery 实现 服务发现 - 服务消费》1、添加依赖。<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0...原创 2020-08-17 20:29:42 · 299 阅读 · 0 评论 -
APPLICATION FAILED TO START
***************************APPLICATION FAILED TO START***************************Description:The dependencies of some of the beans in the application context form a cycle:┌─────┐| discoveryConsumerController defined in file [/home/fan/live/com_li.原创 2020-08-17 20:03:18 · 471 阅读 · 0 评论 -
《通过 Nacos Server 和 spring-cloud-starter-alibaba-nacos-config 实现配置的动态变更。》
《通过 Nacos Server 和 spring-cloud-starter-alibaba-nacos-config 实现配置的动态变更。》1、添加依赖。<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http...原创 2020-08-14 17:51:55 · 852 阅读 · 0 评论 -
SpringCloudAlibaba 使用Nacos 启动【配置管理】,nacos管理页改变数据后自动刷新
SpringCloudAlibaba 使用Nacos 启动【配置管理】,nacos管理页改变数据后自动刷新2020-08-14 17:19:34.853 INFO 26669 --- [2.168.1.52_8848] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@25253b63: startu原创 2020-08-14 17:22:05 · 236 阅读 · 0 评论 -
SpringCloudAlibaba 整合NacosConfig异常:create config service error! (NacosException: null)
SpringCloudAlibaba 整合NacosConfig异常:create config service error! (NacosException: null)方案一、检查配置:spring.cloud.nacos.config.server-addr=192.168.x.xx:8848方案二、SpringCloudConfig和 NacosConfig这种统一配置服务在springboot项目中初始化时,都是加载bootstrap.properties配置文件去初始化上下文。这是原创 2020-08-12 13:56:06 · 940 阅读 · 0 评论 -
SpringCloudAlibaba 启动异常:java.lang.NoClassDefFoundError: org/springframework/core/env/EnvironmentCapa
方案:1)删除maven本地仓库已经下载的Spring jar:repository\org\springframework\spring-core\2)重新下载:修改任意pom.xml,即可触发下载jar原创 2020-08-12 10:54:01 · 660 阅读 · 0 评论 -
由于Spring Cloud基于Spring Boot构建,而Spring Cloud Alibaba又基于Spring Cloud Common的规范实现,所以当我们使用Spring Cloud A
由于Spring Cloud基于Spring Boot构建,而Spring Cloud Alibaba又基于Spring Cloud Common的规范实现,所以当我们使用Spring Cloud Alibaba来构建微服务应用的时候,需要知道这三者之间的版本关系。下表整理了目前Spring Cloud Alibaba的版本与Spring Boot、Spring Cloud版本的兼容关系:Spring Boot Spring Cloud Spring Cloud Alibaba 2.原创 2020-08-12 10:36:40 · 251 阅读 · 0 评论 -
《<SpringBoot 使用Nacos 启动【配置管理】》
《<SpringBoot 使用Nacos 启动【配置管理】》1、添加依赖。<dependency> <groupId>com.alibaba.boot</groupId> <artifactId>nacos-config-spring-boot-starter</artifactId> <version>${latest.version}</version></dependenc.原创 2020-08-19 18:59:33 · 337 阅读 · 0 评论 -
《SpringBoot 使用Nacos 启动【服务发现】》
《SpringBoot 使用Nacos 启动【服务发现】》1、添加依赖。<dependency> <groupId>com.alibaba.boot</groupId> <artifactId>nacos-discovery-spring-boot-starter</artifactId> <version>${latest.version}</version></dependency&.原创 2020-08-19 18:59:57 · 700 阅读 · 0 评论 -
SpringCloud alibaba git 地址
https://github.com/alibaba/spring-cloud-alibaba/blob/master/README-zh.md原创 2020-07-31 11:30:56 · 593 阅读 · 0 评论