| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- #web
- server:
- port: 9011
- servlet:
- context-path: /custom-gw/
- #网关
- gateway:
- routes:
- zydma: /zy-dma
- #spring
- spring:
- #app
- application:
- name: KprCustomGateway
- #servlet
- servlet:
- multipart:
- max-file-size: 200MB
- max-request-size: 200MB
- #启用配置
- profiles:
- active: @enable.module@
- #thymeleaf
- thymeleaf:
- prefix: classpath*:/templates/
- #任务
- task:
- #任务线程池
- execution:
- thread-name-prefix: task-
- pool:
- core-size: 8
- max-size: 0x7fffffff
- queue-capacity: 0x7fffffff
- keep-alive: PT30S
- allow-core-thread-timeout: true
- #定时线程池
- scheduling:
- thread-name-prefix: scheduling-
- pool:
- size: 2
- #数据源
- datasource:
- #连接池
- hikari:
- maximum-pool-size: 200
- minimum-idle: 1
- connection-test-query: SELECT 1
- max-lifetime: 120000
- idle-timeout: 30000
- connection-timeout: 30000
- validation-timeout: 30000
- initialization-fail-timeout: -1
- #多数据源
- multi:
- #主要
- primary:
- url: jdbc:postgresql://223.75.194.87:6057/watersmart?useSSL=false&useAffectedRows=false&allowMultiQueries=true&rewriteBatchedStatements=true&serverTimezone=Asia/Shanghai
- username: postgres
- password: kpr.23417.postgres
- driver-class-name: org.postgresql.Driver
- #嵌入式
- embedded:
- url: jdbc:h2:file:./data
- # url: jdbc:h2:file:E:\kpr\kpr-custom-gateway\data
- driver-class-name: org.h2.Driver
- username: sa
- password: kpr.25535.sa
- #mybatis
- mybatis:
- configuration:
- call-setters-on-nulls: true
- map-underscore-to-camel-case: true
- cache-enabled: false
- #security
- security:
- expiration: P7D
- secret: TRICP_ALAM_DMA
- #对接
- calling:
- connect-timeout: PT30S
- read-timeout: PT30S
- #异步
- async:
- result-path-pattern: /common/async-results
- result-resource-location: ./async-results/
- #临时文件
- temp-file:
- path-pattern: /common/temp-files
- resource-location: ./temp-files/
- cleanup-interval: PT1M
- max-age: PT4H
- #设备
- device:
- map-path: ./dev_@enable.module@.yml
- #map-path: E:\kpr\kpr-custom-gateway\dev_@enable.module@.yml
|