mybatis

Mybatis Plus各种查询方法

/** * 普通查询 */ @Test public void selectById() { UserInfo userInfo = userInfoMapper.selectById(123); System.out.println(userInfo); } /** * 批量查询 */ @Test public void selectById...

MyBatis-Plus 多表联查+分页

在写东西的过程中,多表联查和分页功能必不可少。当然,crud也很重要,MyBatis-Plus一款国产的框架。优化了许多操作,但大部分文档都记录的是单表操作,多表join在很多场景用的很多,本次主要记录一下,多表联查和...

mybatis-plus 表名添加前缀

1、使用mybatis-plus自身的查询构造去,只需要在全局配置中添加如下配置 mybatis-plus: mapper-locations: classpath:mappers/*Mapper.xml # mapper映射文件 global-config: db-config: table-prefix: tr_...