MyBatis分页插件的使用——PageHelper

一,配置plugin    在myBatis的配置文件中,加入以下配置:html <configuration> <!-- 配置分页插件 --> <plugins> <plugin interceptor="com.github.pagehelper.PageHelper"> <!-- 指定使用的数据库是什么 --> <property name="dialect" value="mysql"/>
相关文章
相关标签/搜索