Mybatis-PageHelper icon indicating copy to clipboard operation
Mybatis-PageHelper copied to clipboard

使用 PageHelper 分页插件时,必须设置 helper 属性

Open archyly opened this issue 2 years ago • 3 comments

使用环境

  • PageHelper 版本: pagehelper-spring-boot-starter:1.4.2
  • 数据库类型和版本: kingbase8
  • JDBC_URL: jdbc:kingbase8://

我想强制使用postgresql,但是配置文件好像没有起作用 pagehelper: dialect-alias: postgresql auto-dialect: false

好像仍然去 jdbc url 中解析去了。 image

image

archyly avatar Apr 11 '22 02:04 archyly

请问解决了吗

ohsweetbaby avatar Apr 15 '22 02:04 ohsweetbaby

请问解决了吗

我直接代码中动态指定的 ,可以使用

        PageHelper.startPage(page, limit).using("postgresql");
        List list= mapper.list();
        PageInfo<U> pageInfo = new PageInfo<>(list);

archyly avatar Apr 16 '22 08:04 archyly

使用最新版本 starter,或者参数名使用 dialectAlias

abel533 avatar Sep 18 '22 13:09 abel533