mybatis配置文件,**-source.xml中的pagehelper插件配置
<property name="plugins">
<array>
<bean class="com.github.pagehelper.PageInterceptor">
<property name="properties">
<value>
helperDialect=mysql
reasonable=false(为true时分页合理化,则会出现pageNum为很大时,已经超过总数还会有数据)
supportMethodsArguments=false
params=count=countSql
autoRuntimeDialect=true
</value>
</property>
</bean>
</array>
</property>