leaf 无法使用,没有注解@EnableLeafServer
来源:3-4 springboot项目使用leaf-雪花算法

弗兰克的IT生活
2021-01-13
代码如下:
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<artifactId>leaf-boot-starter</artifactId>
<groupId>com.sankuai.inf.leaf</groupId>
<version>1.0.1-RELEASE</version>
<scope>system</scope>
<!-- 我把github的leaf放到本地, mvn clean install后把包放到这个项目的根目录了 -->
<systemPath>${basedir}/lib/leaf.jar</systemPath>
</dependency>
<dependency>
<groupId>com.sankuai.inf.leaf</groupId>
<artifactId>leaf-server</artifactId>
<version>1.0.1</version>
</dependency>
</dependencies>
不知道为什么。。。
写回答
1回答
-
把github的leaf放到本地
不用这样的。你下载课程源码试试
042021-08-09
相似问题