diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml new file mode 100644 index 0000000000000000000000000000000000000000..31d564065d5e26947cd559567f9229b3f7902845 --- /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 0000000000000000000000000000000000000000..55836ba36798c98a4391a9e5ba1e53d854ba7250 --- /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 0000000000000000000000000000000000000000..9880455cc14ca90ddec70d661b3667b478092fd2 --- /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 0000000000000000000000000000000000000000..0b6ff634aa83af4b9b527b029ed94f2d3e14b04b --- /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