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>
posted @ 2019-09-29 16:14  躺床上看天dzl  阅读(572)  评论(0编辑  收藏  举报