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: