Liuzh
Liuzh
分页要写到Service层,紧跟在要调用的dao方法前。否则容易引起意外,具体看这里: >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 如果想Controller中直接这么操作,就用参数方式。
需要控制顺序时不要使用 starter,直接手动配置。
可能是 pageSize 本身逻辑的问题,即将发布的版本会解决。
最近会考虑处理,在正式版发布前改。
国内用阿里云仓库试试
修改当前项目的 sample 后,测试没有问题: ```java @Mapper public interface UserMapper { @Select("select * from user") List findAll(@Param("pageNum") int pageNum, @Param("pageSize") int pageSize); } ``` 调用: ```java @Override public void run(String... args) throws...
You can use `support-methods-arguments`, and Spring can convert according to the set method. https://github.com/pagehelper/pagehelper-spring-boot/blob/4e4fb05b81a5df03c6d8ad08285d87ec42cdfc1d/pagehelper-spring-boot-autoconfigure/src/main/java/com/github/pagehelper/autoconfigure/PageHelperProperties.java#L77
1.4.4 已发布,已支持。
能否提供 jdbcurl 和 分页 sql ?