Spring Cloud 微服务开发:入门、进阶与源码剖析 —— 8.6 Spring Cloud Bus 基于 JDBC

8.6 Spring Cloud Bus 基于 JDBC

Spring Cloud Config提供了jdbc的方式,本节将通过实际案例讲解其配置以及具体实现,具体使用的数据库是Mysql数据库。

在介绍之前,我们先了解一下具体的架构,如图8-7:

图8-7

8.6.1 创建工程Config-Server-Mysql

  1. 工程依赖pom.xml如下:

代码清单:ch8_3/ch8_3_config_server_mysql/pom.xml


<dependencies>
    <dependency>
        

猜你喜欢

转载自blog.csdn.net/meteor_93/article/details/104295896