Druid mybatis connection db2 error

 The jdbc connection test query is normal, but an error is reported when it is placed in the project. The reason is found because the red part is wrongly written and this situation is caused. Record it as a warning.

spring:
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    driver-class-name: com.ibm.db2.jcc.DB2Driver
    url: jdbc:db2://xx.x.xxx.xxx:port/database name
    username: username
    password: password
    initialSize: 5
    minIdle: 5
    maxActive: 20
    maxWait: 60000
    timeBetweenEvictionRunsMillis: 60000
    minEvictableIdleTimeMillis: 300000
    validationQuery: select 1 from SYSIBM.SYSDUMMY1
    testWhileId le: true
    testOnBorrow: false
    testOnReturn: false
    filters: stat,wall,log4j
    logSlowSql : true

Guess you like

Origin blog.csdn.net/Z865785437029/article/details/121306702