目录

环境

症状

问题原因

解决方案

环境

系统平台:Microsoft Windows (64-bit) 10

版本:5.6.4

症状

数据库连接正常,程序测试时遇到有分页功能的页面报如下错误

### Error querying database.  Cause: com.github.pagehelper.PageException: 无法自动获取数据库类型,请通过 helperDialect 参数指定!
### Cause: com.github.pagehelper.PageException: 无法自动获取数据库类型,请通过 helperDialect 参数指定!]
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database.  Cause: com.github.pagehelper.PageException: 无法自动获取数据库类型,请通过 helperDialect 参数指定!
### Cause: com.github.pagehelper.PageException: 无法自动获取数据库类型,请通过 helperDialect 参数指定!

问题原因

package com.github.pagehelper.parser.impl改插件类中暂无对瀚高数据库的支持

解决方案

在java程序中搜索com.github.pagehelper.PageHelper,如搜索到结果,将此处的数据库类型修改为postgresql。此处如果未搜索到,在程序启动yml文件中添加如下:

更多解决方案请登录【瀚高技术支持平台】查看瀚高技术支持平台 

Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐