更新 Leaf starter
一、Leaf starter更新
1.常用生成ID的工具
- 数据主键自增
- UUID
- 百度分布式ID生成器: uid-generator
- 美团分布式ID生成器: Leaf & 文档
- …
2. Leaf升级版本
- 下载源码 feature/spring-boot-starter 分支
git clone -b feature/spring-boot-starter --single-branch https://github.com/Meituan-Dianping/Leaf.git

- 打开leaf-parent 的pom.xml 粘贴下面内容

<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sankuai.inf.leaf</groupId>
<artifactId>leaf-parent</artifactId>
<packaging>pom</packaging>
<version>1.0.2-RELEASE</version>
<name>Leaf</name>
<modules>
<module>leaf-core</module>
<module>leaf-server</module>
<module>leaf-plugin</module>
</modules>
<description>Distributed ID Generate Service</description>
<developers>
<developer>
<id>zhangzhitong</id>
<name>zhangzhitong</name>
<email>zhitongzhang@outlook.com</email>
</developer>
<developer>
<id>zhanghan</id>
<name>zhanghan</name>
<email>han122655904@163.com</email>
</developer>
<developer>
<id>xiezhaodong</id>
<name>xiezhaodong</name>
<email>pursuer_xie@foxmail.com</email>
</developer>
<developer>
<id>chenzenglin</id>
<name>chenzenglin</name>
<email>chsengni@163.com</email>
</developer>
</developers>
<organization>
<name>Meituan-Dianping Group</name>
<url>https://github.com/Meituan-Dianping</url>
</organization>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<junit.version>4.13.2</junit.version>
<spring.version>5.3.14</spring.version>
<maven.compiler.version>3.8.1</maven.compiler.version>
<mybatis.version>3.5.7</mybatis.version>
<perf4j.version>0.9.16</perf4j.version>
<curator.version>5.2.0</curator.version>
<slf4j.version>1.7.32</slf4j.version>
<druid.version>1.2.8</druid.version>
<jackson-databind.version>2.13.1</jackson-databind.version>
<mysql-connector-java.version>8.0.27</mysql-connector-java.version>
<commons-io.version>2.11.0</commons-io.version>
<log4j.version>2.14.1</log4j.version>
<mybatis-spring.version>2.0.6</mybatis-spring.version>
<spring-boot.version>2.6.2</spring-boot.version>
<leaf.version>1.0.2-RELEASE</leaf.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.sankuai.inf.leaf</groupId>
<artifactId>leaf-core</artifactId>
<version>${leaf.version}</version>
</dependency>
<dependency>
<groupId>com.sankuai.inf.leaf</groupId>
<artifactId>leaf-boot-starter</artifactId>
<version>${leaf.version}</version>
</dependency>
<dependency>
<groupId>com.sankuai.inf.leaf</groupId>
<artifactId>leaf-plugin</artifactId>
<version>${leaf.version}</version>
</dependency>
<dependency>
<groupId>com.sankuai.inf.leaf</groupId>
<artifactId>leaf-server</artifactId>
<version