Mysql(mariabDB)迁移国产数据库人大金仓(KingBase8)报错问题

时间:2020-12-24 12:04:48   收藏:0   阅读:562

1,报错信息com.github.pagehelper.PageException:无法自动获取数据库类型,请通过helperDialect参数指定!

  1>.使用Mybatis设置如下:

    <plugins>

                   <!-- com.github.pagehelper为PageHelper类所在包名 -->

                   <plugin interceptor="com.github.pagehelper.PageInterceptor">

                            <property name="helperDialect" value="postgresql" />

                   </plugin>

          </plugins>

  2>.springboot整合mybatis使用如下:

    在pom文件中引入Pagehelper分页插件:

           <!-- 分页插件 -->

           <dependency>

               <groupId>com.github.pagehelper</groupId>

               <artifactId>pagehelper-spring-boot-starter</artifactId>

               <version>1.2.5</version>

           </dependency>

    配置分页插件,打开application.properties,添加如下配置信息:pagehelper.helper-dialect=postgresql

原文:https://www.cnblogs.com/unknownCode/p/14182984.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!