我这换成基于 postgresql 的瀚高数据库,
public class PaginationConfig {
@Bean
public PaginationInterceptor paginationInterceptor() {
PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
paginationInterceptor,setDbType(DbType.POSTGRE_SOL);
return paginationInterceptor:
启动报错:
2022-12-01 18:17:54.831 WARN 28528 --- [ XNIO-1 task-1] c.b.m.extension.toolkit.JdbcUtils : The jdbcUrl is jdbc:highgo://192.168.1.184:5866/test?currentSchema=dev_bladex, Mybatis Plus Cannot Read Database type or The Database's Not Supported!
2022-12-01 18:17:54.877 ERROR 28528 --- [ XNIO-1 task-1] o.s.c.l.e.BladeRestExceptionTranslator : 服务器异常
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: other database not supported.
### The error may exist in file [G:\zhny\tgde-operation-management\target\classes\org\springblade\operationManagement\mapper\TgeemOeDutyManagementMapper.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: other database not supported.
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440)
at com.sun.proxy.$Proxy190.selectList(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:223)
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:177)
扫一扫访问 Blade技术社区 移动端