javaEEday09-mybatis针对springboot3的切换druid数据源

This commit is contained in:
xx
2026-10-18 14:04:22 +08:00
parent f985f3a640
commit 53fc236a5b
2 changed files with 16 additions and 9 deletions
@@ -1,7 +1,13 @@
spring.application.name=springboot-mybatis-quickstart
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/mybatis
spring.datasource.username=root
spring.datasource.password=1234
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.url=jdbc:mysql://localhost:3306/mybatis
#spring.datasource.username=root
#spring.datasource.password=1234
spring.datasource.type= com.alibaba.druid.pool.DruidDataSource
spring.datasource.url= jdbc:mysql://localhost:3306/mybatis
spring.datasource.username= root
spring.datasource.password= 1234
spring.datasource.driver-class-name= com.mysql.cj.jdbc.Driver