出现场景:pagehelper分页的时候,用pgsql数据库
报错原因:postgresql不支持mysql的limit #,# ,发现pagehelper配置的时候指定了mysql
修改方法:修改配置文件,将helper-dialect: mysql注释或去掉(没有配置这里会自动匹配)
#pagehelper分页插件
pagehelper:
# helper-dialect: mysql
reasonable: true
params: count=countSql
support-methods-arguments: true
然后就可以了