spring boot,mybatis,generator 分页功能
发布时间
阅读量:
阅读量
使用Mybatis自带的插件来查询限制的长度
1.查官网(Supplied plugins)

2.在generatorConfig.xml插入插件
<plugin type="org.mybatis.generator.plugins.RowBoundsPlugin"></plugin>

3.在Terminal运行自动生成Mybatis代码
mvn -Dmybatis.generator.overwrite=true mybatis-generator:generate
结果:
完成了

还没有任何评论哟~
