ICode9

精准搜索请尝试: 精确搜索
  • con·trib·ute2022-08-21 17:32:11

    tribe [tribus 'group within the Roman people'] 部落、族 tribune: an official in ancient Rome who was elected by the ordinary people to protect their rights tribunal ['platform for judges', from tribunus] 审理团; 特别法庭 tribute [tribuere 't

  • SpringCloud Alibaba Sentinel实现熔断与限流-------服务熔断功能2022-07-25 15:35:04

    sentinel整合ribbon+openFeign+fallback 1、启动nacos和sentinel 新建Module  cloudalibaba-provider-payment9003 cloudalibaba-provider-payment9004 新建消费者Module  cloudalibaba-consumer-nacos-order84 业务类 CircleBreakerController  目的测试 : fallback管运行异常

  • 设计模式-工厂模式2022-07-02 20:02:49

    from abc import ABCMeta, abstractclassmethod # 接口 class Pay(metaclass=ABCMeta): @abstractclassmethod def pay(self, money): pass # 称Alipay实现了pay接口 class AliPay(Pay): def __init__(self, huabei=False): self.huabei = huabei

  • SpringCloud Gateway 使用手册2022-05-06 22:01:01

    SpringCloud Gateway 使用手册 目录SpringCloud Gateway 使用手册1 Gateway简介与资料2 三大核心概念3 基础配置3.1 搭环境3.2 业务描述3.3 配置3.3.1 YML配置3.3.2 代码注入4 通过微服务名实现动态路由4.1 原理4.2 环境4.3 测试5 Predicate的使用5.1 介绍5.2 常见

  • II-第二章:(3)微服务案例2022-05-02 11:31:25

    一、前提 约定 > 配置 > 编码 二、IDEA新建project工作空间 1、微服务cloud整体聚合父工程Project 创建父工程步骤: (1)New Project (2)聚合总父工程名字 (3)Maven选版本 (4)工程名字 (5)字符编码 (6)注解生效激活 (7)Java编译版本选JDK8 (8)File Type 过滤 2、父工程POM <?xml version="1

  • sql的查询多次in 操作的导致查询数据为空2022-04-27 21:01:57

      通过if else的方式解决 <choose> <when test="site==5"> and p.is_default=1 and p.payment_method in('1','7','8','12','13','14')

  • springcloud-一篇搞定GateWay2022-04-07 15:32:03

    SpringCloud GateWay简介 SpringCloud Gateway 是 Spring Cloud 的一个全新项目,基于 Spring 5.0+Spring Boot 2.0 和 Project Reactor 等技术开发的网关,它旨在为微服务架构提供一种简单有效的统一的 API 路由管理方式。 SpringCloud Gateway 作为 Spring Cloud 生态系统中的网关,目

  • springcloud-OpenFeign在实际工作使用场景2022-03-31 13:31:40

    OpenFeign在实际工作使用场景 本来在实际工作接触微服务项目使用到openfeign,不同的项目可能有不同的使用方式,下面是3种常见的使用场景 使用场景1:在各自的微服务定义Client 在各自的微服务定义Client,什么意思呢? 比如说目前有3个微服务,A,B服务是消费者,C服务是生产者。A和B都要去调用C

  • Mysql-5-整合数据2022-02-06 16:33:09

    1.聚合函数 SQL中有一些自带的函数,其中一些叫做聚合函数 常见函数:MAX(),MIN(),AVG(),SUM(),COUNT()--这些函数我们在学算法的时候经常看到,看到名字就知道啥意思 SELECT MAX(invoice_total)FROM invoices 比如用max()函数筛选总价最高的,执行后你会发现列名变成了 这些函数只运算非空

  • springcloud-Gateway2022-02-03 20:02:36

    Gateway 新一代网关 一、Gateway概述 1、Gateway是什么 gateway 官网:https://cloud.spring.io/spring-cloud-static/spring-cloud-gateway/2.2.1.RELEASE/reference/html/ Cloud全家桶中有个很重要的组件就是网关,在1.x版本中都是采用Zuul网关; 但在2.x版本中,zuul的升级就是一直跳票

  • GateWay 的使用2022-01-23 18:01:52

    介绍 GateWay网关技术用于取代ruul1.x 环境配置 网关不需要业务类 pom依赖 注意:gateway 模块中不要带有 spring web、spring author 依赖,否则会报错,因为网关不需要这些依赖 <!--gateway--> <dependency> <groupId>org.springframework.cloud</grou

  • Springcloud之Gateway网关2022-01-21 09:31:35

    Springcloud-Gateway网关 官网:https://docs.spring.io/spring-cloud-gateway/docs/current/reference/html 一.gateway项目搭建 导入依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</

  • 电力市场术语2022-01-16 16:32:26

    market-clearing price 市场出清价格 market equilibrium 市场均衡 locational marginal pricing (LMP) 节点边际价格 convex hull pricing 凸包定价 uplift payment 上调费用 make-whole payment aggregate cost 总成本 marginal cost 边际成本 reactive power 无功功率

  • Ribbon RestTemplate 的使用方法2022-01-14 01:00:30

    1 要想使用RestTemplate,需要添加配置类,注入bean RestTemplate共有四类方法: getForObject(url, class) 发送get请求,返回值为class postForObject(url, javabean, class) 发送post请求,请求参数是JavaBean,返回值为class getForEntity(url, class) 发送get请求,返回包装过的class pos

  • springcloud学习第二节(微服务子模块创建)2022-01-12 15:03:42

    微服务模块 建module改pom写yml主启动业务类 创建子module 自动新增父类pom自动生成该内容 子类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-i

  • RestTemplate用法2022-01-08 19:58:45

    RestTemplate 是从 Spring3.0 开始支持的一个 HTTP 请求工具,它提供了常见的REST请求方案的模版,例如 GET 请求、POST 请求、PUT 请求、DELETE 请求以及一些通用的请求执行方法 exchange 以及 execute。RestTemplate 继承自 InterceptingHttpAccessor 并且实现了 RestOperation

  • sql 批量跟新sql 语句2022-01-07 19:04:01

      问题: 更新一批数据,根据不同code 更新不同的时间。 code 不是主键 。但是也是唯一的。   解决: mybatis-plus  有批量更新的方法       都是根据ID 更新。 没法解决问题。   写 sql 语句。    entity层 @Data public class UpdateOrderDto { /** * 订单号

  • Payment Medium Workbench -- 支付媒介工作台2021-12-26 09:06:36

    Purpose The Payment Medium Workbench (PMW) is a tool used to configure and create payment media sent by organizations to their house banks. This generic tool will gradually phase out the classic payment medium programs (RFFO*) due to the range of advantag

  • python数据分析第9天2021-12-17 20:34:15

    python数据分析第9天 电商网站用户/订单/活动数据分析项目 商业模式 B2B:商家对商家(企业卖家对企业买家),交易双方都是企业,最典型的案例就是阿里巴巴,汇聚了各行业的供应商,特点是订单量一般较大。B2C:商家对个人(企业卖家对个人买家),例如:唯品会,聚美优品。B2B2C:商家对商家对个人,例如:

  • springcloud微服务(二十四)-网关GateWay三大特性路由、断言、过滤器2021-12-16 21:30:46

    一、Gateway创建动态路由 我们从gateway的配置文件application.yml中可以看到,url是固定的,并不能实现负载均衡,依然存在着问题。所以需要配置动态路由。即从注册中心动态创建路由的功能,利用微服务名进行路由。 server: port: 9527 spring: application: name: cloud-gate

  • Stripe国际支付平台接入2021-12-13 19:35:23

    Stripe 是一家科技公司,致力于为互联网经济打造基础设施。所有公司,无论规模大小,从初创公司到上市企业,都可以用我们的软件来收款和管理他们的线上业务。 引用stripe 公司介绍的一段话:“我们的使命是:增加互联网 GDP”。 Stripe支持130+种币值。 首先我需要在Stripe平台拿到俩个参数

  • Spring Cloud Sleuth链路追踪2021-12-07 23:33:57

    Spring Cloud Sleuth链路追踪 https://spring.io/projects/spring-cloud-sleuth 分布式服务追踪与调用链系统产生的背景 在微服务框架中,一个由客户端发起的请求在后端系统中会经过多个不同的服务节点调用来协同产生最后的请求结果,每一个前端请求都会形成一条复杂的分布式服务调

  • springcloud-05Eureka07-discovery服务发现2021-12-02 11:03:36

    对于注册进eureka里面的微服务,可以通过服务发现来获得该服务的信息 修改cloud-provider-payment8001的Controller @RestController @Slf4j public class PaymentController { @Resource private PaymentService paymentService; @Value("${server.port}") p

  • MySQL 8 查询优化新工具 Explain Analyze2021-11-27 15:05:08

    1. Explain Analyze 介绍 Explain 是我们常用的查询分析工具,可以对查询语句的执行方式进行评估,给出很多有用的线索。 但他仅仅是评估,不是实际的执行情况,比如结果中的 rows,可能和实际结果相差甚大。 Explain Analyze 是 MySQL 8 中提供的新工具,牛X之处在于可以给出实际执行

  • springcloud学习之网关-Gateway2021-11-26 09:03:41

    由于Gateway底层使用了netty框架,所以性能很高,是异步非阻塞的 新建工程 添加pom依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</artifactId> </dependency> 添加yml配置 server: port: 9527

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有