diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index 53fa026..6c366a6 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -1,5 +1,5 @@ spring.datasource.url=jdbc:mysql://117.174.24.18:3306/fourcal?\ -characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&rewriteBatchedStatements=true +characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true spring.datasource.username=root spring.datasource.password=zytx123!@# diff --git a/src/main/resources/application-local.properties b/src/main/resources/application-local.properties index 4d654fa..5aeb99b 100644 --- a/src/main/resources/application-local.properties +++ b/src/main/resources/application-local.properties @@ -1,5 +1,5 @@ spring.datasource.url=jdbc:mysql://localhost:3306/fourcal?\ -characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&rewriteBatchedStatements=true +characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true spring.datasource.username=root spring.datasource.password=123456 diff --git a/src/main/resources/application-pretest.properties b/src/main/resources/application-pretest.properties index abc9107..04d3b21 100644 --- a/src/main/resources/application-pretest.properties +++ b/src/main/resources/application-pretest.properties @@ -1,5 +1,5 @@ spring.datasource.url=jdbc:mysql://120.27.128.207:3306/fourcal?\ - characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&rewriteBatchedStatements=true + characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true spring.datasource.username=root spring.datasource.password=zytx123!@# diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index b691e91..f9306b6 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -1,5 +1,5 @@ spring.datasource.url=jdbc:mysql://172.34.31.145:3306/fourcal?\ - characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&rewriteBatchedStatements=true + characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true spring.datasource.username=fourcal spring.datasource.password=Qwer123!@#$ diff --git a/src/main/resources/application-sit.properties b/src/main/resources/application-sit.properties index 392f369..43c9c8b 100644 --- a/src/main/resources/application-sit.properties +++ b/src/main/resources/application-sit.properties @@ -1,5 +1,5 @@ spring.datasource.url=jdbc:mysql://127.0.0.1:3306/fourcal?\ - characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&rewriteBatchedStatements=true + characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true spring.datasource.username=root spring.datasource.password=zytx123!@# diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 7b938b9..b89f14a 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -2,7 +2,7 @@ spring.application.name=fourcal server.port=8282 server.context-path=/fourcal app.version=0.0.1 -spring.profiles.active=dev +spring.profiles.active=local spring.datasource.type=com.alibaba.druid.pool.DruidDataSource spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver