Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我改了一版,需要的可以直接安装。主要改动是加了id长度限制和按日期循环生成id #220

Open
bytechaocai opened this issue Mar 15, 2025 · 0 comments

Comments

@bytechaocai
Copy link

地址:https://github.com/cpupg/Leaf/releases/tag/v2.0.0

  • 精简core模块,单元测试移动到server。
  • 增加spring-boot-starter(没有上传中央仓库,需要自行安装并引入)。
  • 修改打包脚本,打包到deploy目录下,并生成启动脚本start-server.sh
  • 不再限制号段表表名和字段名,由用户自行实现IDAllocDao接口,可以是mybatis 映射,也可以是服务组件@Service@Component
  • 增加id长度限制功能,通过max_number限制id长度,比如999999代表最大长度是6。
  • 增加日期变化时重置id功能。
  • 增加带静态方法的工具类LeafSegmentGenerator
@bytechaocai bytechaocai changed the title 我改了一半,需要的可以直接安装。主要改动是加了id长度限制和按日期循环生成id 我改了一版,需要的可以直接安装。主要改动是加了id长度限制和按日期循环生成id Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant