pom.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.sckw</groupId>
  8. <artifactId>sckw-common</artifactId>
  9. <version>1.0.0</version>
  10. </parent>
  11. <artifactId>sckw-common-datasource</artifactId>
  12. <version>1.0.0</version>
  13. <description>多数据源</description>
  14. <properties>
  15. <maven.compiler.source>17</maven.compiler.source>
  16. <maven.compiler.target>17</maven.compiler.target>
  17. <maven.compiler.compilerVersion>17</maven.compiler.compilerVersion>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <mysql.version>8.0.30</mysql.version>
  20. <mybatis-plus.version>3.5.3.1</mybatis-plus.version>
  21. <dynamic-datasource.version>3.6.1</dynamic-datasource.version>
  22. <latest.release.version>5.2.0</latest.release.version>
  23. </properties>
  24. <dependencies>
  25. <!--mysql-->
  26. <dependency>
  27. <groupId>com.mysql</groupId>
  28. <artifactId>mysql-connector-j</artifactId>
  29. </dependency>
  30. <!--mybatis-plus 依赖-->
  31. <dependency>
  32. <groupId>com.baomidou</groupId>
  33. <artifactId>mybatis-plus-boot-starter</artifactId>
  34. <version>${mybatis-plus.version}</version>
  35. </dependency>
  36. <!--多数据源-->
  37. <dependency>
  38. <groupId>com.baomidou</groupId>
  39. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  40. <version>${dynamic-datasource.version}</version>
  41. </dependency>
  42. <!--ShardingSphere-JDBC-->
  43. <dependency>
  44. <groupId>org.apache.shardingsphere</groupId>
  45. <artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
  46. <version>${latest.release.version}</version>
  47. </dependency>
  48. </dependencies>
  49. </project>