本文内容来自 YashanDB 官网,原文内容请见 https:///newsinfo/7281300.html?templateId=1718516
较早版本 mybatis-plus 识别数据库类型是通过 jdbc url 识别的,访问崖山数据库就会出现报数据库类型不支持的错误:java.lang.IllegalStateException: dbType not support : null, url jdbc:jdbc: yasdb://192.168.0.1:1688/yashandb
解决办法:
增加数据类型配置
1、application.yml 格式配置文件
‘#mybatis-plus 全局数据库类型配置
mybatis-plus:
global-config:
db-config: db-type: oracle
’# 增加分页插件 pagehelper 的数据库模式配置
pagehelper:
helperDialect: oracle
2、application.properties 格式配置文件
‘#mybatis-plus 全局数据库类型配置
mybatis-plus.global-config.db-config.db-type=oracle
’# 增加分页插件 pagehelper 的数据库模式配置
pagehelper.helperDialect=oracle
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70028812/viewspace-3070509/ ,如需转载,请注明出处,否则将追究法律责任。