2023年7月9日

springcloud - zipkin链路调用

摘要: 通过sleuth,开启zipkin可通过访问localhost:9411/zipkin 开启web界面查看链路调用 trace id 就是一个服务id parent id 就是调用者的id 原始服务parent id = null 服务提供者 provider 导入依赖 <!--包含了sleuth+ 阅读全文

posted @ 2023-07-09 11:17 你就学个JVAV? 阅读(47) 评论(0) 推荐(0)

springcloud -stream消息驱动(去差异化 >>目前只支持rabbitmq and kafka) 此处使用rabbitmq用作实例子

摘要: 生产者 核心依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-stream-rabbit</artifactId> </dependency> yml配置文件 s 阅读全文

posted @ 2023-07-09 00:00 你就学个JVAV? 阅读(27) 评论(0) 推荐(0)

2023年7月8日

centos7 安装 rabbitmq

摘要: 1、下载RabbitMQ安装包 (请自行下载erlang和对应版本的rabbitmq) 2、上传安装包到Linux中 将上面三个软件上传到/usr/local/software 目录下(如果没有 software 需要自己创建) 3、安装文件(分别按照以下顺序安装) 进入software文件夹,依次 阅读全文

posted @ 2023-07-08 21:53 你就学个JVAV? 阅读(40) 评论(0) 推荐(0)

springcloud - 通过消息总线bus进行刷新

摘要: 修改3344服务 pom文件 <!--添加消息总线RabbitMQ支持--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-bus-amqp</artifactId 阅读全文

posted @ 2023-07-08 21:44 你就学个JVAV? 阅读(36) 评论(0) 推荐(0)

springcloud -config配置中心 整合github 或者gitee 单个刷新配置

摘要: 配置中心,通过从开源仓库上拉去配置,而不是在本地修改 服务端配置 cloud-config-center-3344 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-config-se 阅读全文

posted @ 2023-07-08 21:38 你就学个JVAV? 阅读(50) 评论(0) 推荐(0)

2023年7月7日

springcloudconfig拉去配置文件报错[Resolved [java.lang.IllegalStateException: Cannot load environment]]

摘要: Caused by: java.lang.IllegalArgumentException: Integer value http.postBuffer out of range 只需如下操作即可解决 阅读全文

posted @ 2023-07-07 22:19 你就学个JVAV? 阅读(68) 评论(0) 推荐(0)

springcloud - gateway的简单搭建以及网关配置的两种方式

摘要: 导入依赖: <dependencies> <!--做网关时不要引入starter-web和starter-actuator两个包 否则会导致启动报错--> <!--gateway 核心依赖 comment : new dependency--> <dependency> <groupId>org.s 阅读全文

posted @ 2023-07-07 16:19 你就学个JVAV? 阅读(96) 评论(0) 推荐(0)

springcloud- 服务监控 hystrix dashboard

摘要: 导入依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId> </dependency> 编 阅读全文

posted @ 2023-07-07 15:30 你就学个JVAV? 阅读(43) 评论(0) 推荐(0)

springcloud -hystrix服务熔断机制

摘要: 服务熔断:就是在错误率达到规定百分比的时候会开启,然后隔断消费者和服务端,在不断访问提升正确率后将其关闭,回复调用链路 service hystrix-payment-order8001 增加方法 // 服务熔断 @HystrixCommand(fallbackMethod = "paymentCi 阅读全文

posted @ 2023-07-07 10:27 你就学个JVAV? 阅读(57) 评论(0) 推荐(0)

springcloud- hystrix服务降级简单讲解(包括自定义降级处理类)

摘要: 在出现错误的时候我们需要即使进行处理并返回提示信息给用户实现交互友好化,我们使用一下注解来实现服务降级功能,一般我们将服务降级配置在客户端 相关注解 provider 8001 @HystrixCommand(fallbackMethod = "paymentInfo_TimeOut_Handler 阅读全文

posted @ 2023-07-07 09:22 你就学个JVAV? 阅读(59) 评论(0) 推荐(0)

导航