Tag: Spring Cloud
All the articles with the tag "Spring Cloud".
-
Spring Cloud Gateway 网关
Spring Cloud 在最新版本 开始,已去除了 Zuul 网关的使用,改用 Spring Cloud Gateway 作为网关。 Spring Cloud Gateway 基于 Spring WebFlux 框架实现,相对于 Zuul 来说,性能更高。 本文讲述如何在 Spring C...
-
Spring Cloud + MyBatis + Druid 动态数据源实现
最近公司某项目计划对数据库进行水平分库处理,因此需要实现程序根据参数自动切换数据库的功能。 本文讲述如何在 Spring Cloud MyBatis Druid Oracle 环境下实现动态数据源切换的功能。 配置数据源 在两个 Oracle 数据库创建 表,并插入几行数据: 为便于标识不同...
-
Spring Cloud 使用 Nacos 作注册中心
文章 《Spring Cloud 使用 Nacos 作配置中心》 描述了如何在 Spring Cloud 使用 Nacos 作配置中心的使用方法,本文在此基础上,使用 Nacos 作为 Spring Cloud 的注册中心。 安装 Nacos 为简单起见,这里使用单机版本的 Nacos Ser...
-
Spring Cloud 使用 Nacos 作配置中心
Nacos 是 Spring Cloud Alibaba 核心组件之一,可以用作 Spring Cloud 的注册中心和配置中心。 本文讲述如何在 Spring Cloud 中使用 Nacos 作为配置中心。 安装 Nacos 与 Spring Cloud Config 和 Eureka 的...