Leaf——美团点评分布式ID生成系统 leaf-boot-starter 更新版本 1.0.2-RELEASE

本文介绍如何更新Leafstarter至最新版本,包括下载源码、修改POM文件及安装步骤,并提供了Leafstarter及其依赖组件的具体版本信息。

更新 Leaf starter

一、Leaf starter更新

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

在这里插入图片描述

  1. 打开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>
            <!--leaf版本一致-->
            <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
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

陈增林

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值