![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
张zoro
读万卷书,行万里路
展开
-
sql中rownum得使用
sql中rownum得使用原创 2022-12-08 10:22:44 · 4390 阅读 · 0 评论 -
java.util.ArrayList cannot be cast to com.github.pagehelper.Page
mybatis分页插件得问题;原因:因为这段代码PageHelper.startPage(pageNum, pageSize);只会对靠近的第一个select查询语句进行分页;原本的代码:public PageResult findPageByLogin(Tcsa tcsa, int pageNum, int pageSize) { PageHelper.startPage(pageNum, pageSize); Authentication authentication = Secu原创 2022-05-15 15:22:33 · 5477 阅读 · 0 评论