feat:自定义动态数据源@DynamicDataSource

This commit is contained in:
xiang
2025-07-26 22:13:57 +08:00
parent 62d83dfe0a
commit a6fb38de7c
11 changed files with 175 additions and 3 deletions

11
pom.xml
View File

@@ -12,6 +12,7 @@
<module>xservice-common</module>
<module>xservice-cache</module>
<module>xservice-third-part</module>
<module>xservice-mysql-starter</module>
</modules>
<properties>
@@ -71,13 +72,17 @@
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-spring-boot.version}</version>
</dependency>
<!-- Redis -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<!-- Redis -->
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-data-redis</artifactId>-->
<!-- </dependency>-->
<!-- RocketMQ -->
<dependency>
<groupId>org.apache.rocketmq</groupId>