--- # 数据源配置 spring: datasource: type: com.zaxxer.hikari.HikariDataSource mybatis-flex: # sql审计 audit_enable: false # sql打印 sql_print: true # 数据源 datasource: # 数据源1 ds1: type: ${spring.datasource.type} # MySql driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/eco-boot?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true username: root password: root123 #DM8数据库 # driver-class-name: dm.jdbc.driver.DmDriver # url: jdbc:dm://127.0.0.1:5236?schema=eco-boot&useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true # username: SYSDBA # password: SYSdba123 # 最大连接池数量 maximum-pool-size: 20 # 最小空闲线程数量 minimum-idle: 10 # 配置获取连接等待超时的时间 connectionTimeout: 60000 # 校验超时时间 validationTimeout: 5000 # 空闲连接存活最大时间,默认10分钟 idleTimeout: 600000 # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟 maxLifetime: 1800000 # 多久检查一次连接的活性 keepaliveTime: 30000 # 数据源2 # ds2: # url: jdbc:mysql://127.0.0.1:3306/eco1 # username: root # password: root123