diff --git a/springboot-mybatis-quickstart/pom.xml b/springboot-mybatis-quickstart/pom.xml index a1c8053..0343aa3 100644 --- a/springboot-mybatis-quickstart/pom.xml +++ b/springboot-mybatis-quickstart/pom.xml @@ -60,12 +60,13 @@ test - - + com.alibaba - druid-spring-boot-starter - 1.2.8 - --> + druid-spring-boot-3-starter + 1.2.28 + + org.projectlombok diff --git a/springboot-mybatis-quickstart/src/main/resources/application.properties b/springboot-mybatis-quickstart/src/main/resources/application.properties index ffe79a9..c21e648 100644 --- a/springboot-mybatis-quickstart/src/main/resources/application.properties +++ b/springboot-mybatis-quickstart/src/main/resources/application.properties @@ -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