From 8bd04184076e69fca765aae3496b4349e52f0c5c Mon Sep 17 00:00:00 2001 From: lihongjie0209 Date: Wed, 6 Sep 2023 22:54:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-prod.yaml | 5 ++++- src/main/resources/application-test.yaml | 5 ++++- src/main/resources/application.yaml | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/resources/application-prod.yaml b/src/main/resources/application-prod.yaml index 7eb26ca1..202bd65f 100644 --- a/src/main/resources/application-prod.yaml +++ b/src/main/resources/application-prod.yaml @@ -1,3 +1,4 @@ + logging: file: name: ${spring.application.name}.log @@ -9,4 +10,6 @@ logging: total-size-cap: 1GB threshold: file: info - console: info \ No newline at end of file + console: info +server: + port: 7458 \ No newline at end of file diff --git a/src/main/resources/application-test.yaml b/src/main/resources/application-test.yaml index 7eb26ca1..b437dd09 100644 --- a/src/main/resources/application-test.yaml +++ b/src/main/resources/application-test.yaml @@ -1,3 +1,4 @@ + logging: file: name: ${spring.application.name}.log @@ -9,4 +10,6 @@ logging: total-size-cap: 1GB threshold: file: info - console: info \ No newline at end of file + console: info +server: + port: 7457 \ No newline at end of file diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 6a980c38..6993e3eb 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -45,7 +45,7 @@ spring: druid: driver-class-name: org.postgresql.Driver - url: jdbc:postgresql://${PG_HOST:localhost}:${PG_PORT:5432}/coal + url: jdbc:postgresql://${PG_HOST:localhost}:${PG_PORT:5432}/${PG_DATABASE:coal} username: ${PG_USER:postgres} password: ${PG_PASSWORD:abc@123} initial-size: 10 @@ -71,6 +71,7 @@ spring: host: ${REDIS_HOST:localhost} port: ${REDIS_PORT:6379} password: ${REDIS_PASSWORD:abc@123} + database: ${REDIS_DATABASE:0} cache: