application.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #web
  2. server:
  3. port: 9011
  4. servlet:
  5. context-path: /custom-gw/
  6. #网关
  7. gateway:
  8. routes:
  9. zydma: /zy-dma
  10. #spring
  11. spring:
  12. #app
  13. application:
  14. name: KprCustomGateway
  15. #servlet
  16. servlet:
  17. multipart:
  18. max-file-size: 200MB
  19. max-request-size: 200MB
  20. #启用配置
  21. profiles:
  22. active: @enable.module@
  23. #thymeleaf
  24. thymeleaf:
  25. prefix: classpath*:/templates/
  26. #任务
  27. task:
  28. #任务线程池
  29. execution:
  30. thread-name-prefix: task-
  31. pool:
  32. core-size: 8
  33. max-size: 0x7fffffff
  34. queue-capacity: 0x7fffffff
  35. keep-alive: PT30S
  36. allow-core-thread-timeout: true
  37. #定时线程池
  38. scheduling:
  39. thread-name-prefix: scheduling-
  40. pool:
  41. size: 2
  42. #数据源
  43. datasource:
  44. #连接池
  45. hikari:
  46. maximum-pool-size: 200
  47. minimum-idle: 1
  48. connection-test-query: SELECT 1
  49. max-lifetime: 120000
  50. idle-timeout: 30000
  51. connection-timeout: 30000
  52. validation-timeout: 30000
  53. initialization-fail-timeout: -1
  54. #多数据源
  55. multi:
  56. #主要
  57. primary:
  58. url: jdbc:postgresql://223.75.194.87:6057/watersmart?useSSL=false&useAffectedRows=false&allowMultiQueries=true&rewriteBatchedStatements=true&serverTimezone=Asia/Shanghai
  59. username: postgres
  60. password: kpr.23417.postgres
  61. driver-class-name: org.postgresql.Driver
  62. #嵌入式
  63. embedded:
  64. url: jdbc:h2:file:./data
  65. # url: jdbc:h2:file:E:\kpr\kpr-custom-gateway\data
  66. driver-class-name: org.h2.Driver
  67. username: sa
  68. password: kpr.25535.sa
  69. #mybatis
  70. mybatis:
  71. configuration:
  72. call-setters-on-nulls: true
  73. map-underscore-to-camel-case: true
  74. cache-enabled: false
  75. #security
  76. security:
  77. expiration: P7D
  78. secret: TRICP_ALAM_DMA
  79. #对接
  80. calling:
  81. connect-timeout: PT30S
  82. read-timeout: PT30S
  83. #异步
  84. async:
  85. result-path-pattern: /common/async-results
  86. result-resource-location: ./async-results/
  87. #临时文件
  88. temp-file:
  89. path-pattern: /common/temp-files
  90. resource-location: ./temp-files/
  91. cleanup-interval: PT1M
  92. max-age: PT4H
  93. #设备
  94. device:
  95. map-path: ./dev_@enable.module@.yml
  96. #map-path: E:\kpr\kpr-custom-gateway\dev_@enable.module@.yml