在使用PageHelper前首先要准备两个jar包

1.PageHelper Central Repository: com/github/pagehelper/pagehelper

2.jsqlparser Central Repository: com/github/jsqlparser/jsqlparser

导入后进行配置

        <property name="plugins">
            <array>
                <bean class="com.github.pagehelper.PageInterceptor">
                    <property name="properties">
                        <!--使用下面的方式配置参数,一行配置一个 -->
                        <value>
                            helpDialect=mysql
                            reasonable=true
                        </value>
                    </property>
                </bean>
            </array>
        </property>

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐