From 2efd00bf72081be71590c38f354db5ff03502c26 Mon Sep 17 00:00:00 2001 From: yangjie <1179743470@qq.com> Date: Fri, 4 Jun 2021 17:21:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.properties | 11 +++++++++++ src/main/resources/application-prod.properties | 13 +++++++++++++ src/main/resources/application-test.properties | 11 +++++++++++ src/main/resources/application.properties | 2 -- src/main/resources/application.yml | 3 +++ 5 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/application-dev.properties create mode 100644 src/main/resources/application-prod.properties create mode 100644 src/main/resources/application-test.properties delete mode 100644 src/main/resources/application.properties diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties new file mode 100644 index 0000000..0471e2a --- /dev/null +++ b/src/main/resources/application-dev.properties @@ -0,0 +1,11 @@ +spring.datasource.url=jdbc:mysql://116.63.168.79:3306/keda?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai +spring.datasource.username=root +spring.datasource.password=123456 +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver + +spring.jackson.default-property-inclusion=non_null + +server.port=1010 +server.servlet.context-path=/project + +logging.level.com.yipin.liuwanr.mapper=debug diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties new file mode 100644 index 0000000..70c3e1d --- /dev/null +++ b/src/main/resources/application-prod.properties @@ -0,0 +1,13 @@ +#spring.datasource.url=jdbc:mysql://116.63.168.79:3306/keda?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai +spring.datasource.url=jdbc:mysql://192.168.0.99:3306/keda?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai +spring.datasource.username=root +#spring.datasource.password=123456 +spring.datasource.password=mssdk@028 +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver + +spring.jackson.default-property-inclusion=non_null + +server.port=1010 +server.servlet.context-path=/project + +logging.level.com.yipin.liuwanr.mapper=debug diff --git a/src/main/resources/application-test.properties b/src/main/resources/application-test.properties new file mode 100644 index 0000000..1c14695 --- /dev/null +++ b/src/main/resources/application-test.properties @@ -0,0 +1,11 @@ +spring.datasource.url=jdbc:mysql://rm-wz9y13wf7u8q8610fwo.mysql.rds.aliyuncs.com:3306/keda?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai +spring.datasource.username=super +spring.datasource.password=huoran888 +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver + +spring.jackson.default-property-inclusion=non_null + +server.port=1010 +server.servlet.context-path=/project + +logging.level.com.yipin.liuwanr.mapper=debug diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties deleted file mode 100644 index 9c6db59..0000000 --- a/src/main/resources/application.properties +++ /dev/null @@ -1,2 +0,0 @@ -#\u9009\u62E9\u6307\u5B9A\u73AF\u5883,\u76EE\u524D\u5206\u79D1\u5927\u9879\u76EE\u548C\u804C\u7AD9\u9879\u76EE -spring.profiles.active=keda \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index e69de29..03c30d3 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -0,0 +1,3 @@ +spring: + profiles: + active: test