From 8eaec4eb697a23137890b8b2b90aeca0609e76bf Mon Sep 17 00:00:00 2001 From: wangjingsheng Date: Tue, 1 Mar 2022 16:22:54 +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.yml | 28 ++++++++++++ src/main/resources/application-local.yml | 18 ++++++++ src/main/resources/application-prod.yml | 18 ++++++++ src/main/resources/application.yml | 57 ++++++++++++++++++++++++ 4 files changed, 121 insertions(+) create mode 100644 src/main/resources/application-dev.yml create mode 100644 src/main/resources/application-local.yml create mode 100644 src/main/resources/application-prod.yml create mode 100644 src/main/resources/application.yml diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml new file mode 100644 index 0000000..31d5640 --- /dev/null +++ b/src/main/resources/application-dev.yml @@ -0,0 +1,28 @@ +spring: + datasource: + driver-class-name: org.postgresql.Driver + username: postgres + password: passwd123 + type: com.zaxxer.hikari.HikariDataSource + jdbc-url: jdbc:postgresql://cloud.wodcloud.com:33070/apaas4?stringtype=unspecified&TimeZone=Asia/Shanghai&useAffectedRows=true + + redis: + host: 117.187.130.178 + port: 33077 + database: 0 + timeout: 3 + password: + pool: + minIdle: 1 + maxIdle: 10 + maxWait: 3 + maxActive: 8 + +knife4j: + enable: true + +#beagle: +# jwt: +# secret-key: ac2ceb11e6be4d9ea0a71c9b270c1cb8 +# token-prefix: Bearer +# expire-time: 18000 \ No newline at end of file diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml new file mode 100644 index 0000000..55836ba --- /dev/null +++ b/src/main/resources/application-local.yml @@ -0,0 +1,18 @@ +spring: + datasource: + driver-class-name: org.postgresql.Driver + username: postgres + password: postgresql + type: com.zaxxer.hikari.HikariDataSource +# jdbc-url: jdbc:postgresql://192.168.43.20:33072/pms3?currentSchema=public&stringtype=unspecified&TimeZone=Asia/Shanghai&useAffectedRows=true +# jdbc-url: jdbc:postgresql://172.20.10.9:33072/pms3?currentSchema=public&stringtype=unspecified&TimeZone=Asia/Shanghai&useAffectedRows=true + jdbc-url: jdbc:postgresql://192.168.1.152:33072/pms3?currentSchema=public&stringtype=unspecified&TimeZone=Asia/Shanghai&useAffectedRows=true + +knife4j: + enable: true + +#beagle: +# jwt: +# secret-key: ac2ceb11e6be4d9ea0a71c9b270c1cb8 +# token-prefix: Bearer +# expire-time: 18000 \ No newline at end of file diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml new file mode 100644 index 0000000..9880455 --- /dev/null +++ b/src/main/resources/application-prod.yml @@ -0,0 +1,18 @@ +spring: + datasource: + driver-class-name: org.postgresql.Driver + username: ocp_user + password: spaceIN511 + type: com.zaxxer.hikari.HikariDataSource + jdbc-url: jdbc:postgresql://172.37.41.175:5432/pms3?currentSchema=operating_platform&stringtype=unspecified&TimeZone=Asia/Shanghai&useAffectedRows=true + +knife4j: + enable: true + +#beagle: +# jwt: +# secret-key: ac2ceb11e6be4d9ea0a71c9b270c1cb8 +# token-prefix: Bearer +# expire-time: 18000 + + diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..0b6ff63 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,57 @@ +server: + port: 8020 +# servlet: +# context-path: ${context-path:/pms-ocp} + +spring: + application: + name: dashboard + profiles: + active: ${profiles-active:local} + datasource: + driver-class-name: org.postgresql.Driver + username: ${username} + password: ${password} + type: com.zaxxer.hikari.HikariDataSource + jdbc-url: ${DB_URL} + + redis: + host: ${redis-host:127.0.0.1} + port: ${redis-port:6379} + database: 0 + timeout: 3 + password: + pool: + minIdle: 1 + maxIdle: 10 + maxWait: 3 + maxActive: 8 + +knife4j: + enable: true + +mybatis-plus: + mapper-locations: classpath:/mapper/*.xml + configuration: + log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl + +logging: + level: + com.pms.ocp.mapper: debug + org.springframework: warn + +system: + company_name: ${company_name:国网山东电力} + company_code: ${company_code:074001001} + +beagle: + jwt: + secret-key: memDataSource + token-prefix: Bearer + app-id: 8a10843a6a535e33016b873f96b7002f + expire-time: 18000 + +# Swagger配置 +swagger: + # 是否开启swagger + enabled: true \ No newline at end of file -- 2.26.0