分页插件java.lang.ClassCastException: java.util.ArrayList cannot be cast to com.github.pagehelper.Page pagehelper默认只能对最后返回的结果分页,所以报错 <dependency> <groupId>cn.wjee.boot</groupId> <artifactId>wjee-mybatis-spring-boot-starter</artifactId> <version>2.1.1.3</version> </dependency> 替换成以上坐标即可解决