分页依赖: <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.0.0</version> </dependency> 配置: 前后端分离:前段页面中url需填写全路径,同时在controller层添加@CrossOrigin注解 拓展:Date类型需要转换,实体类中添加注解解决