spring.datasource.type
spring.datasource.type
是springboot配置文件用来指定 数据库连接池类型(使用哪种连接池) 的属性
HikariCP
spring.datasource.type: com.zaxxer.hikari.HikariDataSource
Druid
spring.datasource.type: com.alibaba.druid.pool.DruidDataSource
C3P0
spring.datasource.type: com.mchange.v2.c3p0.ComboPooledDataSource
DBCP
spring.datasource.type: org.apache.commons.dbcp2.BasicDataSource
转载自:https://juejin.cn/post/7246376735838601275