将这段代码放在springmvc.xml里面
<!-- 配置分页插件 -->
<property name="plugins">
<array>
<bean class="com.github.pagehelper.PageInterceptor">
<property name="properties">
<value>
helperDialect=Oracle
</value>
</property>
</bean>
</array>
</property>