
spring cloud
小草dym
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Hystrix 熔断器03 —— hystrix 案例之高并发测试案例的解决方案
原创 2021-03-14 16:22:38 · 159 阅读 · 0 评论 -
Hystrix 熔断器02 —— hystrix 案例之高并发测试
下载地址 https://jmeter.apache.org/download_jmeter.cgipom.xml<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schema...原创 2021-03-05 18:59:03 · 182 阅读 · 0 评论 -
Hystrix 熔断器02 —— hystrix 案例之构建
pom.xml<?xml version="1.0" encoding="UTF-8"?><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://maven.ap...原创 2021-03-05 16:33:51 · 119 阅读 · 0 评论 -
Hystrix 熔断器01—— 概述 || Hystrix 重要概念
原创 2021-03-05 12:46:03 · 149 阅读 · 0 评论 -
openFeign 服务接口的调用04——OpenFeign 日志打印功能
FeignConfig.javapackage com.dym.springcloud.config;import feign.Logger;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;@Configurationpublic class FeignConfig{ @Bean Lo...原创 2021-03-05 12:21:20 · 452 阅读 · 0 评论 -
openFeign 服务接口的调用03—— OpenFeign 超时控制
原创 2021-03-05 12:03:55 · 316 阅读 · 0 评论 -
openFeign 服务接口的调用02—— openFeign 的使用步骤
pom.xml<?xml version="1.0" encoding="UTF-8"?><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://maven...原创 2021-03-05 11:36:52 · 181 阅读 · 1 评论 -
openFeign 服务接口的调用01——概述
原创 2021-03-05 01:14:21 · 132 阅读 · 1 评论 -
eureka/zookeeper/consul 三个注册中心的异同点
原创 2021-03-05 01:00:06 · 237 阅读 · 1 评论 -
Consul 服务注册与发现03—— 服务消费者
pom.xml<?xml version="1.0" encoding="UTF-8"?><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://maven.apac...原创 2021-03-05 00:54:08 · 195 阅读 · 1 评论 -
Consul 服务注册与发现02—— 服务提供者
pom.xml<?xml version="1.0" encoding="UTF-8"?><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://maven.apac...原创 2021-03-05 00:25:03 · 142 阅读 · 1 评论 -
Consul 服务注册与发现01——简介|| 安装并运行Consul
https://www.consul.io/docs/intro 官网https://learn.hashicorp.com/tutorials/consul/get-started-install安装的教程原创 2021-03-04 23:52:51 · 121 阅读 · 1 评论 -
Ribbon 负载均衡调用04——ribbon 负载均衡算法||手写轮询算法(原理+JUC)CAS+自旋锁
RoundRobinRule.java 源码剖析/* * * Copyright 2013 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *...原创 2021-03-04 23:44:14 · 337 阅读 · 3 评论 -
Ribbon 负载均衡调用03——Ribbon核心组件IRule
MySelfRule.javapackage com.dym.myrule;import com.netflix.loadbalancer.IRule;import com.netflix.loadbalancer.RandomRule;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;@Configu...原创 2021-03-04 16:54:17 · 341 阅读 · 1 评论 -
Ribbon 负载均衡调用02——Ribbon 负载均衡演示
@GetMapping("/consumer/payment/getForEntity/{id}") public CommonResult<Payment> getPayment2(@PathVariable("id") Long id) { ResponseEntity<CommonResult> entity = restTemplate.getForEntity(PAYMENT_URL+"/payment/...原创 2021-03-04 16:23:10 · 136 阅读 · 1 评论 -
Ribbon 负载均衡调用01——概述
原创 2021-03-04 13:06:13 · 118 阅读 · 1 评论 -
Zookeeper 服务注册与发现02——服务消费者
pom.xml<?xml version="1.0" encoding="UTF-8"?><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://maven.apac...原创 2021-03-04 12:21:55 · 197 阅读 · 1 评论 -
Zookeeper 服务注册与发现01——服务提供者
<!-- SpringBoot整合zookeeper客户端 --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-zookeeper-discovery</artifactId> ...原创 2021-03-04 11:21:33 · 219 阅读 · 1 评论 -
eureka的自我保护
原创 2021-03-04 02:02:34 · 103 阅读 · 1 评论 -
服务发现Discovery
@Resource private DiscoveryClient discoveryClient; @GetMapping(value = "/payment/discovery") public Object discovery() { List<String> services = discoveryClient.getServices(); for (String element : services...原创 2021-03-04 01:32:32 · 323 阅读 · 2 评论 -
actuator 微服务信息的完善
原创 2021-02-28 12:50:56 · 107 阅读 · 0 评论 -
Eureka 服务注册与发现02——集群版
C:\Windows\System32\drivers\etc原创 2021-02-26 23:50:36 · 174 阅读 · 0 评论 -
Eureka 服务注册与发现01——单机版
cloud-eureka-server7001 的pom.xml<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mave...原创 2021-02-26 23:20:36 · 117 阅读 · 0 评论 -
org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘GET‘ not supported
http://localhost:8001/payment/create?serial=efgef原因在于:浏览器不支持post的请求。建议使用postman或者ApiPost 提交post请求原创 2021-02-26 21:32:49 · 725 阅读 · 0 评论 -
Rest 微服务工程搭建03——工程重构
cloud-api-commons 的pom文件<?xml version="1.0" encoding="UTF-8"?><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....原创 2021-02-26 21:34:14 · 108 阅读 · 0 评论 -
Rest 微服务工程搭建02——微服务消费者订单Module模块 || @RequestBody 的重要作用
restTemplate的使用https://docs.spring.io/spring-framework/docs/5.2.2.RELEASE/javadoc-api/org/springframework/web/client/RestTemplate.htmlpom.xml<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0....原创 2021-02-26 21:34:01 · 237 阅读 · 0 评论 -
热部署Devtools的简单使用
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional></dependency> ...原创 2021-02-26 21:33:53 · 184 阅读 · 0 评论 -
Rest 微服务工程搭建01——微服务提供者Module模块
建表SQL语句的书写CREATE TABLE `payment` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `serial` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '支付流水号', PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB CHARACT...原创 2021-02-26 21:33:04 · 238 阅读 · 1 评论 -
微服务架构编码,构建
父工程pom文件<?xml version="1.0" encoding="UTF-8"?><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....原创 2021-02-26 09:12:12 · 150 阅读 · 1 评论 -
关于spring cloud 各种组件的停更/升级/替换
以前常用的一些spring cloud的组件现在spring cloud 常用的一些组件原创 2021-02-25 21:36:25 · 328 阅读 · 0 评论 -
springcloud 与springboot的依赖关系以及版本的选择
springcloud 与springboot的依赖关系选择的版本原创 2021-02-25 21:36:16 · 471 阅读 · 0 评论