From ce1bdc85a8804beed0b4f0534ea1cc60aeeb250a Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Mon, 29 Nov 2021 15:44:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E4=B8=BB=E5=A4=87=E8=87=AA=E5=8A=A8=E5=88=87=E6=8D=A2=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 1 + src/main/resources/application-test.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d10e59a..e47aa8f 100644 --- a/pom.xml +++ b/pom.xml @@ -53,6 +53,7 @@ druid-spring-boot-starter ${druid.version} + junit junit diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index a55c0f9..d0825c6 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -27,11 +27,12 @@ spring: datasource: druid: url: jdbc:mysql://127.0.0.1:3306/db_smart_city_usercenter?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true + # standby-url: jdbc:mysql://192.168.0.151:3306/db_smart_city_usercenter?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true db-type: mysql driver-class-name: com.mysql.cj.jdbc.Driver username: root password: root - initial-size: 2 + initial-size: 1 min-idle: 2 max-active: 5 max-wait: 60000