From 271076d8bfc17ea608dec1183b4e915b7b4d9af3 Mon Sep 17 00:00:00 2001 From: OathK1per Date: Mon, 21 Feb 2022 15:19:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AEmysql=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-prod.properties | 4 ++-- src/main/resources/application.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index f9306b6..2c272f6 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -1,6 +1,6 @@ -spring.datasource.url=jdbc:mysql://172.34.31.145:3306/fourcal?\ +spring.datasource.url=jdbc:mysql://127.0.0.1:3306/fourcal?\ characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true -spring.datasource.username=fourcal +spring.datasource.username=root spring.datasource.password=Qwer123!@#$ spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 43968f3..b5a974b 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -3,7 +3,7 @@ server.port=8282 server.session.timeout=7200 server.context-path=/fourcal app.version=0.0.1 -spring.profiles.active=sit +spring.profiles.active=prod spring.datasource.type=com.alibaba.druid.pool.DruidDataSource spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver