配置数据源
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/test?serverTimezone=GMT
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.type=org.apache.commons.dbcp2.BasicDataSource
DBCP2数据源
spring.datasource.dbcp2.max-total=20
spring.datasource.dbcp2.max-wait-millis=30000
spring.datasource.dbcp2.max-idle=10
spring.datasource.dbcp2.initial-size=10
Mybatis
支持驼峰命名法
mybatis.configuration.map-underscore-to-camel-case=true
支持控制台输出sql
mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl