基于“基于spring+mybatis框架的管理系统:简单实现增、删、改、查。(一)”的代码基础上,进行修改。
1.将以下代码添加入“applicationContext.xml”里
<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>
</