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

pageHelper使用using动态设置helperDialect导致默认写法异常

Open hejinguo opened this issue 2 years ago • 1 comments

yml文件配置: pagehelper: helper-dialect: mysql

Service中方法A: PageHelper.startPage(1, 10).using("oracle"); List<User> list = userMapper.selectAll();

Service中方法B: PageHelper.startPage(1, 10); List<User> list = userMapper.selectAll();

1.访问controller接口调用A方法 正常 2.访问controller接口调用B方法 正常 3.访问controller接口调用A方法 异常,语法错误

目前对于B方法也全都加上了using("mysql")来处理的。

hejinguo avatar Mar 14 '22 08:03 hejinguo

com.github.pagehelper.test.features.dialectclass.UsingDialectClassTest

这个测试类中没有发现问题。。能在类似单元测试复现吗?

abel533 avatar Sep 18 '22 13:09 abel533