Yuandupier
Yuandupier
Cheer Up, Bro
🏠 主页
🗂 分类
🗃 归档
🎨 瞬间
📷 相册
👨💻 关于
🐶 毛茸茸的宝藏铺
🏠 主页
🗂 分类
🗃 归档
🎨 瞬间
📷 相册
👨💻 关于
🐶 毛茸茸的宝藏铺
SpringCloud
技术
SpringBoot
8
SpringCloud
15
Jenkins
11
JVM
4
Golang
0
生活
使用Golang客户端实现Nacos服务注册发现和配置管理
使用Golang客户端实现Nacos服务注册发现和配置管理 背景 最近需要把Golang实现的一个web项目集成到基于Spring Cloud Alibaba的微服务体系中,走Spring Cloud Gateway网关路由实现统一的鉴权入口。 软件版本 组件名称 组件版本 Nacos 2.2.0
SpringCloud
334
0
0
2024-03-04
Spring Cloud Gateway路由到Amazon S3签名失败处理
背景 最近在预研统一存储网关,想到就是使用Spring Cloud Gateway作为网关的入口,再反向代理到S3对象存储服务器。 软件版本 网关:Spring Cloud Gateway 3.1.2 s3对象存储:minio aws java sdk:1.12.429 问题现象 Spring Cl
SpringCloud
106
0
0
2023-07-21
Nacos支持https
前言 本文主要整理了Nacos Server如何开启https,以及对于注册发现和客户端负载均衡需要如何适配修改。 软件版本 Spring Boot 2.6.7 Spring Cloud 2021.0.2 Spring Cloud Alibaba 2021.0.1.0 Nacos 2.1.0 测试项
SpringCloud
39
0
0
2022-09-16
Nacos使用实践
背景 本文主要整理了如何使用nacos作为微服务的注册中心、配置中心以及开启鉴权。 软件版本 Spring Boot 2.6.7 Spring Cloud 2021.0.2 Spring Cloud Alibaba 2021.0.1.0 Nacos 2.1.0 Nacos Server部署 本次部署
SpringCloud
31
0
0
2022-08-02
使用zookeeper代替eureka
背景 项目目前使用的eureka版本是1.10.17,该版本是目前最新的版本,这个版本是2021年9月份发布的,到现在也已经快一年没有更新过了。而且eureka2.x版本也停止了开发,所以需要寻找eureka的替换组件。本文就简单梳理下在Spring Cloud中使用zookeeper来替代eure
SpringCloud
34
0
0
2022-07-13
Spring Boot、Spring Cloud升级踩坑汇总
背景 最近在进行Spring Boot、Spring Cloud的升级,是跨大版本升级,遇到了一些适配的问题,本文主要整理了升级中遇到的问题以及自己的解决思路,希望能够帮助到大家。 升级版本如下: Spring Boot 2.3.12.REALEASE -> 2.6.7 Spring Cloud H
SpringCloud
33
0
0
2022-06-07
Spring Cloud Gateway添加熔断
前言 本文主要介绍如何在Spring Cloud Gateway中添加熔断处理。 使用的软件版本如下: Spring Boot 2.6.7 Spring Cloud 2021.0.2 添加依赖 Spring Cloud提供了一个开箱即用的熔断实现Resilience4j,在后续高版本的Spring
SpringCloud
67
0
0
2022-05-26
Spring Cloud Gateway中路由到https后端
背景 在进行zuul切换到gateway时,由于我们的微服务都是https的,所以需要在网关进行路由时支持https的调用。 实现方案 参考部分官方文档和技术文章,大概罗列出三种可以实施的方案。 方案一 第一种方案,可以在网关进行路由时,进行如下配置信任所有的下游证书: spring: clou
SpringCloud
54
0
0
2022-05-13
Spring Cloud Gateway中session共享
背景 在进行zuul切换到gateway时,需要重新实现session共享,本文主要分享一下自己实现的方案。 zuul中的session共享 在zuul中,是通过spring-session-data-redis这个组件,将session的信息存放到redis中实现的session共享。这次也简单说
SpringCloud
39
0
0
2022-05-10
Spring Cloud Gateway实现限流
Spring Cloud Gateway实现限流 背景 zuul切换为spring cloud gateway时,需要重新实现限流逻辑。本文主要整理了spring cloud gateway中如何实现限流。 zuul中的限流 之前zuul的限流是通过guava提供的令牌桶算法实现的,通过一个全局的过
SpringCloud
36
0
0
2022-04-27
Spring Cloud Gateway自定义过滤器
背景 最近项目需要切换网关,由zuul切换为spring cloud gateway,研究了部分spring cloud gateway能力,本文主要记录了spring cloud gateway如何自定义过滤器。 创建Spring Cloud Gateway工程 添加如下maven依赖引入Spri
SpringCloud
24
0
0
2022-04-22
Spring Cloud OpenFeign简单使用以及开启https
前言 之前的几篇博客中,微服务之间的调用是通过注入一个restTemplate对象,并且使用@LoadBalanced注解实现了负载均衡。其实Spring Cloud也提供了声明式的REST客户端:Feign,相对于直接注入restTemplate对象,Feign的使用更加简洁一些。 本文主要记录了
SpringCloud
26
0
0
2022-01-28
下一页