Skip to content

MyBatis-Plus spring-boot-nebula-mybatis ​

MyBatis-Plus 封装,提供基础实体、审计字段自动填充、类型处理器与分页工具。

引入依赖 ​

xml
<dependency>
    <groupId>io.github.weihubeats</groupId>
    <artifactId>spring-boot-nebula-mybatis</artifactId>
    <version>3.0.6</version>
</dependency>

主要能力 ​

类说明
BaseDO基础实体(id、createTime、updateTime)
NebulaMetaObjectHandler插入/更新时自动填充审计字段
ArrayTypeHandler / ListTypeHandler数组、列表类型处理器
PageHelperUtils结合 NebulaPageQuery 的分页工具

分页示例 ​

java
Page<StudentDO> page = PageHelperUtils.startPage(dto);
List<StudentVO> list = ...;
return PageHelperUtils.of(list, page);

示例模块:spring-boot-nebula-mybatis-sample。

Released under the Apache 2.0 License.