ssm open frame - when using paging assistant, set in applicationContext.xml profile

<!--创建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>

Guess you like

Origin www.cnblogs.com/Hubert-dzl/p/11608465.html