美文网首页
MybatisPlus使用

MybatisPlus使用

作者: 你挺ne呀 | 来源:发表于2022-07-27 14:50 被阅读0次

小技巧

  • 01 在mapper.xml中写sql并且需要使用mybatisplus中得分页插件时,可以在service层传参数时将PageFactory.defaultPage()作为参数传入mapper层,在mapper传参数时将IPage<Entity> page作为参数传入mapper.xml中

相关文章

网友评论

      本文标题:MybatisPlus使用

      本文链接:https://www.haomeiwen.com/subject/scszirtx.html