最近有需求需要自己手寫sql查詢數據庫,並且分頁
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>${pagehelper.version}</version>
</dependency>
在springboot中引用如上依賴代替原生的即可,使用方式和原來無差異。