需求背景
最近需要一个小demo,项目中需要同时连接sqlserver和mysql数据库。
操作教程
1、pom.xml
-- 修改common/pom.xml
<!-- 动态数据源 -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
<version>4.3.1</version>
</dependency>
<!--SQLServer连接-->
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>8.2.2.jre8</version>
</dependency>
<!-- Mysql驱动包 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<!-- oracle驱动包 -->
<depend
标签:xml,数据库,sqlserver,ruoyi,pom,切换,mysql,com
From: https://blog.csdn.net/renkai721/article/details/143053798