spring boot mybatis 无法正常启动程序

OCEAN-BASE数据库版本:
4.2.3.0

spring boot中我的配置如下。

pom文件

        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.49</version>
        </dependency>

spring.yml 文件

spring:
servlet:
multipart:
max-file-size: 50MB
max-request-size: 50MB
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://192.168.137.70:2881/dbdc_data_center?characterEncoding=UTF-8&useSSL=false
username: root@sys
password: root1234

问题现象:
Parsed mapper file: ‘file [D:\bjaction\development\dbdc_data_center\app\target\classes\mapper\KdKeyDictionaryNameMapper.xml]’
Parsed mapper file: ‘file [D:\bjaction\development\dbdc_data_center\app\target\classes\mapper\KdUpdateLogMapper.xml]’
Parsed mapper file: ‘file [D:\bjaction\development\dbdc_data_center\app\target\classes\mapper\KiAttachmentMapper.xml]’
Parsed mapper file: ‘file [D:\bjaction\development\dbdc_data_center\app\target\classes\mapper\KiDataSourceMapper.xml]’
Parsed mapper file: ‘file [D:\bjaction\development\dbdc_data_center\app\target\classes\mapper\KiKeyIndicatorClassMapper.xml]’
Parsed mapper file: ‘file [D:\bjaction\development\dbdc_data_center\app\target\classes\mapper\KiKeyIndicatorMapper.xml]’
Parsed mapper file: ‘file [D:\bjaction\development\dbdc_data_center\app\target\classes\mapper\KiKeyIndicatorValueMapper.xml]’
Parsed mapper file: ‘file [D:\bjaction\development\dbdc_data_center\app\target\classes\mapper\KiMaintenanceDepartmentMapper.xml]’
Parsed mapper file: ‘file [D:\bjaction\development\dbdc_data_center\app\target\classes\mapper\KiStatisticScopeMapper.xml]’
Parsed mapper file: ‘file [D:\bjaction\development\dbdc_data_center\app\target\classes\mapper\SdParameterMapper.xml]’
Parsed mapper file: ‘file [D:\bjaction\development\dbdc_data_center\app\target\classes\mapper\SdServiceDirectoryMapper.xml]’
_ _ |_ _ |. ___ _ | _
| | |/|)(| | |\ |)|||\
/ |
3.4.3

很久都不动一直无法继续。

尝试使用MySQL作为数据源试下呢,排除下数据库因素

mysql没问题,原来是mysql现在要迁移到oceanbase.

你是要的oceanbase是4.2.3,而程序使用的是mysql的5.1.49,试一下面的确定一下不是依赖驱动的版本问题?

<dependency>
   <groupId>mysql</groupId>
   <artifactId>mysql-connector-java</artifactId>
   <version>8.0.25</version>
</dependency>
<dependency>
   <groupId>org.mybatis</groupId>
   <artifactId>mybatis</artifactId>
   <version>3.5.4</version>
</dependency>

用客户端软件连接下ob看下能不能连呢,防火墙也看一下,ob的端口跟mysql不一样,检查下防火墙

新建个业务租户,不要使用系统租户。

有进一步报错日志出来吗?