From 53fc236a5b8991a2836b980a1e12a146c7d4477c Mon Sep 17 00:00:00 2001 From: xuxin <840198532@qq.com> Date: Sun, 18 Oct 2026 14:04:22 +0800 Subject: [PATCH] =?UTF-8?q?javaEEday09-mybatis=E9=92=88=E5=AF=B9springboot?= =?UTF-8?q?3=E7=9A=84=E5=88=87=E6=8D=A2druid=E6=95=B0=E6=8D=AE=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- springboot-mybatis-quickstart/pom.xml | 11 ++++++----- .../src/main/resources/application.properties | 14 ++++++++++---- 2 files changed, 16 insertions(+), 9 deletions(-) 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