在sqlSessionFactoryBean配置中添加
<property name="plugins">
<array>
<!--传入插件对象-->
<bean class="com.github.pagehelper.PageInterceptor">
<property name="properties">
<props>
<!-- 配置使用的数据库 -->
<prop key="helperDialect">mysql</prop>
<!-- 配置页码的合理化修正 -->
<prop key="reasonable">true</prop>
</props>
</property>
</bean>
</array>
</property>
本文介绍了如何在Spring Boot应用中配置PageInterceptor插件,重点讲解了MySQL数据库配置及页码合理性调整。
1万+

被折叠的 条评论
为什么被折叠?



