在MyBatis的配置文件中修改對pageHelper的配置
修改前
<plugins> <plugin interceptor="com.github.pagehelper.PageHelper"> <!-- 配置數據庫的方言 --> <!-- 設置數據庫類型 Oracle,Mysql,MariaDB,SQLite,Hsqldb,PostgreSQL六種數據庫--> <property name="dialect" value="mysql"/> </plugin> </plugins>
修改后
<plugins> <plugin interceptor="com.github.pagehelper.PageInterceptor"> <!-- 配置數據庫的方言 --> <!-- 設置數據庫類型 Oracle,Mysql,MariaDB,SQLite,Hsqldb,PostgreSQL六種數據庫--> <!-- <property name="dialect" value="mysql"/> --> </plugin> </plugins>