ssm框架开--使用分页助手时,在applicationContext.xml配置文件中的设置

<!--创建SqlSessionFactory对象-->
<bean id="factory" class="org.mybatis.spring.SqlSessionFactoryBean">
<!--注入数据源-->
<property name="dataSource" ref="dataSource"></property>
<!--mybatis 其它相关配置(分页助手)-->
<property name="plugins">
<array>
<bean class="com.github.pagehelper.PageInterceptor">
<property name="properties">
<props>
<prop key= "helperDialect">mysql</prop>
</props>
</property>
</bean>
</array>
</property>
</bean>
原文地址:https://www.cnblogs.com/Hubert-dzl/p/11608465.html