MyBatis分頁插件的使用——PageHelper

一,配置plugin    在myBatis的配置文件中,加入以下配置:html <configuration> <!-- 配置分頁插件 --> <plugins> <plugin interceptor="com.github.pagehelper.PageHelper"> <!-- 指定使用的數據庫是什麼 --> <property name="dialect" value="mysql"/>
相關文章
相關標籤/搜索