Mybatis-Flex 是一个优雅的 Mybatis 增强框架,它非常轻量、同时拥有极高的性能与灵活性。我们可以轻松的使用 Mybaits-Flex 链接任何数据库,其内置的 QueryWrapper 帮助我们极大的减少了 SQL 编写的工作的同时,减少出错的可能性。
总而言之,Mybatis-Flex 能够极大地提高我们的开发效率和开发体验,让我们有更多的时间专注于自己的事情。
MyBatis-Flex v1.3.5 更新如下:
- 新增:代码生成器添加生成 spring-cache 缓存模板配置。感谢 @王帅
- 新增:Db + Row 添加 schema 的支持。感谢 @Font_C
- 新增:IService 添加 pageAs 方法。感谢 @王帅
- 新增:添加更多 column 工具方法
- 新增:添加 Spring 下的 CacheableServiceImpl 实现类,方便用户缓存。感谢 @王帅
- 优化:重构 IService,使之有更好的方法服用。感谢 @王帅
- 优化:重命名 QueryWrapper 的 "toDebugSQL()" 方法名为 "toSQL()"
- 优化:Page.java 在传入为 0 的 pageNumber 时添加错误提示
- 优化:RawValue.java 修改为 RawFragment 以适应更多场景
- 优化:修改 WrapperUtil.getChildSelect() 方法为 getChildQueryWrapper
- 优化:修改 BaseMapper.selectListByQueryAs 以支持获取 List 和 List
- 优化:工具类添加 private 构造方法。感谢 @王帅
- 修复:在修改和删除时,schema 配置无效的问题
- 修复:update 方法应该替换 CachePut 注解为 CacheEvict。感谢 @王帅
- 修复:代码生成器生成的缓存 Service 缓存 key 错误的问题。感谢 @王帅
- 修复:错别字 taked 修改为 took。感谢 @王帅
- 修复:当使用 QueryWrapper 未指定 from 时,schema 出错的问题
- 修复:当配置 config-location 时,出现 IllegalArgumentException 错误的问题
- 修复:case when else 中出现的 column 无法转换的问题 #I7A0B0:case when 条件里为什么没带进去值
- 文档:添加关于 CacheableServiceImpl 使用的一些文档。感谢 @王帅
- 文档:完善代码生成器的相关文档。感谢 @王帅
- 文档:同步 IService 最新的文档,删除旧版本的一些方法。感谢 @王帅
- 文档:修复 sqlSessionTemplate 错别字的问题。感谢 @阿志同学
- 文档:添加关于 QueryWrapper 序列化的相关文档
- 文档:继续完善 "常见问题" 的相关文档
进一步了解 MyBatis-Flex 框架,请参考一下链接:
- 1、快速开始:https://mybatis-flex.com/zh/intro/getting-started.html
- 2、多表关联查询:https://mybatis-flex.com/zh/base/query.html
- 3、一对多、多对一:https://mybatis-flex.com/zh/base/field-query.html
- 4、灵活的 QueryWrapper:https://mybatis-flex.com/zh/base/querywrapper.html
- 5、逻辑删除:https://mybatis-flex.com/zh/core/logic-delete.html
- 6、乐观锁:https://mybatis-flex.com/zh/core/version.html
- 7、数据填充:https://mybatis-flex.com/zh/core/fill.html
- 6、数据脱敏:https://mybatis-flex.com/zh/core/mask.html
- 7、SQL 审计:https://mybatis-flex.com/zh/core/audit.html
- 8、多数据源:https://mybatis-flex.com/zh/core/multi-datasource.htm
- 9、事务管理:https://mybatis-flex.com/zh/core/tx.html
- 10、数据权限:https://mybatis-flex.com/zh/core/data-permission.html
- 11、字段权限:https://mybatis-flex.com/zh/core/columns-permission.html
- 12、字段加密:https://mybatis-flex.com/zh/core/columns-encrypt.html
- 13、字典回写:https://mybatis-flex.com/zh/core/columns-dict.html
- 14、枚举属性:https://mybatis-flex.com/zh/core/enum-property.html
- 15、动态表名:https://mybatis-flex.com/zh/core/dynamic-table.html
- 16、多租户:https://mybatis-flex.com/zh/core/multi-tenancy.html
- 17、代码生成器:https://mybatis-flex.com/zh/others/codegen.html
- 18、更好用的功能正在路上:https://mybatis-flex.com
和其他框架对比请参考:
- 1、和
MyBatis-Plus
、Fluent-Mybatis
【功能】方面的对比:https://mybatis-flex.com/zh/intro/comparison.html - 2、和
MyBatis-Plus
【性能】方面的对比:https://mybatis-flex.com/zh/intro/benchmark.html
MyBatis-Flex 开源 3 个月以来,gitee 获得了 600+ star,以及得到了 30 位小伙伴的 pr, 这要比很多老牌的框架更加活跃和有意思,FLEX 确实要更加简单、优雅,才能获得众多伙伴的青睐。
恳请花几分钟去了解,或许她真极大地提高您的开发效率和开发体验,让您有更多的时间去陪伴自己的家人。 如果确实有用,别忘了给个 star:https://gitee.com/mybatis-flex/mybatis-flex