Error querying database. Cause: com.github.pagehelper.PageException: 无法自动获取数据库类型(APP)
目录
环境
症状
问题原因
解决方案
环境
系统平台: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文件中添加如下:
更多解决方案请登录【瀚高技术支持平台】查看瀚高技术支持平台
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
