#221·Leaf

[BUG] 不支持Mysql8.0及以上版本

Author: PottermoreIronCreated Mar 22, 2025Updated Mar 22, 2025

BUG 描述

使用本地install的Leaf jsr包,无法成功注入SegmentService

复现步骤

在类里自动注入SegmentService,启动程序后直接报错 create connection error, url: xxxx, errorCode 0, state 08001

期望行为

能成功使用SegmentService

运行环境

运行系统: Mac 软件版本: JDK 21 / SpringBoot 3.4.2/ Mysql 9.2.0

附加信息

Image

解决方式

修改leaf的pom文件,将mysql版本改为对应的使用版本

Image

ps: 个人认为文档写的不够详细,例如leaf的配置,现在的README不够准确,可以直接把配置写在application.yml

Image