Liuzh
Liuzh
还有一种可能就是你扫描到基类接口了。这类接口没有指定泛型,不能被扫描。
你用 mybatis-starter 了吗?也有可能是自动配置扫描到了接口。
PageHelper.startPage 方法一定要紧跟在查询方法前。 详情看这里:https://github.com/pagehelper/Mybatis-PageHelper/blob/master/wikis/zh/HowToUse.md#3-pagehelper-%E5%AE%89%E5%85%A8%E8%B0%83%E7%94%A8
偶然分页是同一次调用还是不同次?
@JKTerrific 注意看这里:https://github.com/pagehelper/Mybatis-PageHelper/blob/master/wikis/zh/HowToUse.md#3-pagehelper-%E5%AE%89%E5%85%A8%E8%B0%83%E7%94%A8
这种改动相当于不使用resultMap了...特殊情况先不考虑。
已经增加。 按需增加相应的 `application-{profile}.properties` 配置即可。
错误是什么?