2019-03-22 17:26:38 +08:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
<parent>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
|
<version>2.1.3.RELEASE</version>
|
|
|
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|
|
|
|
</parent>
|
|
|
|
|
<groupId>com.fanxb</groupId>
|
|
|
|
|
<artifactId>sjdemo</artifactId>
|
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
|
<name>sjdemo</name>
|
|
|
|
|
<description>sharding-jdbc分库分表demo</description>
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
<java.version>1.8</java.version>
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
|
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
|
|
<version>2.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2019-03-26 17:21:27 +08:00
|
|
|
|
<!--看不到getter/setter因为这个,请注意-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2019-03-26 14:35:52 +08:00
|
|
|
|
<!--这里有个大坑,版本过高使用xa事务会报错未指定数据库,参见:https://github.com/apache/incubator-shardingsphere/issues/1842-->
|
2019-03-22 17:26:38 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
2020-07-01 23:43:17 +00:00
|
|
|
|
<version>8.0.16</version>
|
2019-03-22 17:26:38 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.shardingsphere</groupId>
|
|
|
|
|
<artifactId>sharding-jdbc-spring-boot-starter</artifactId>
|
|
|
|
|
<version>3.1.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
|
|
<artifactId>druid</artifactId>
|
|
|
|
|
<version>1.1.14</version>
|
|
|
|
|
</dependency>
|
2019-03-26 14:35:52 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
|
|
<artifactId>fastjson</artifactId>
|
|
|
|
|
<version>1.2.56</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!--xa分布式事务-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.shardingsphere</groupId>
|
|
|
|
|
<artifactId>sharding-transaction-2pc-xa</artifactId>
|
|
|
|
|
<version>3.1.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.shardingsphere</groupId>
|
|
|
|
|
<artifactId>sharding-transaction-spring-boot-starter</artifactId>
|
|
|
|
|
<version>3.1.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2019-03-22 17:26:38 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
</project>
|