mybatis using pagehelper Times Caused by: java.sql.SQLSyntaxErrorException: Unknown column 'ROWNUM' in 'field list' error

This error is when configuring pagehelper, bloggers careless mistakes

Unknown column 'ROWNUM' in 'field list'错误

  First of all this means is not ROWNUM this column because bloggers are using the mysql database does ROWNUM this column, but I configured pagehelper

  Configuration became the oracle database

  

<property name="plugins">
            <array>
                <bean class="com.github.pagehelper.PageInterceptor">
                    <property name="properties">
                        <props>
                            <!--用来识别数据库-->
                            <prop key="helperDialect">oracle</prop>
                            <!--使页数不会越界-->
                            <prop key="reasonable">true</prop>
                        </props>
                    </property>
                </bean>
            </array>
        </property>

 

 

 

<prop key = "helperDialect"> oracle </ prop> 
  This line of code into the error oracle wherein like mysql

Guess you like

Origin www.cnblogs.com/leiqichao/p/12590570.html