application.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. server:
  2. servlet:
  3. context-path: /exchange
  4. session:
  5. timeout: PT2H
  6. encoding:
  7. charset: UTF-8
  8. force: true
  9. enabled: true
  10. port: 8081
  11. spring:
  12. application:
  13. name: gsl_exchange
  14. datasource:
  15. driver-class-name: dm.jdbc.driver.DmDriver
  16. url: jdbc:dm://10.8.11.164:3307/GSLEXCHANGE
  17. username: GSLEXCHANGE
  18. password: GSLEXCHANGE
  19. # driver-class-name: com.mysql.cj.jdbc.Driver
  20. # url: jdbc:mysql://127.0.0.1:3306/gslexchange?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8
  21. # username: root
  22. # password: 123456
  23. type: com.zaxxer.hikari.HikariDataSource
  24. hikari:
  25. maximum-pool-size: 1000 #最大连接数,默认值10.
  26. minimum-idle: 200 #最小空闲连接,默认值10.
  27. connection-timeout: 60000 #连接超时时间(毫秒),默认值30秒.
  28. #空闲连接超时时间,默认值600000(10分钟),只有空闲连接数大于最大连接数且空闲时间超过该值,才会被释放
  29. #如果大于等于 max-lifetime 且 max-lifetime>0,则会被重置为0.
  30. idle-timeout: 600000
  31. max-lifetime: 3000000 #连接最大存活时间,默认值30分钟.设置应该比mysql设置的超时时间短
  32. connection-test-query: select 1 #连接测试查询
  33. jackson:
  34. date-format: yyyy-MM-dd HH:mm:ss
  35. time-zone: GMT+8
  36. serialization:
  37. write-dates-as-timestamps: false
  38. # thymeleaf:
  39. # prefix: classpath:/templates/pages/
  40. # suffix: .html
  41. # mode: HTML5
  42. # encoding: UTF-8
  43. # cache: false
  44. # servlet:
  45. # content-type: text/html
  46. web:
  47. resources:
  48. static-locations:
  49. classpath:
  50. # 图片上传
  51. servlet:
  52. multipart:
  53. # 单文件上传限制10M
  54. max-file-size: 10MB
  55. # 多文件上传限制10M
  56. max-request-size: 10MB
  57. activemq:
  58. #activemq的url
  59. broker-url: failover://tcp://10.8.8.104:7043
  60. #用户名
  61. user: nmgsl
  62. #密码
  63. password: EtDRPjdSVU
  64. queue-name: trs_nmgsl
  65. pool:
  66. enabled: false #是否使用线程池
  67. max-connections: 100 #最大连接数
  68. #是否信任所有包
  69. packages:
  70. trust-all: true
  71. #默认情况下,activemq使用的是queue模式,如果要使用topic模式,必须设置为true
  72. jms:
  73. pub-sub-domain: true
  74. # Mybatis-plus
  75. mybatis-plus:
  76. mapper-locations: classpath*:mapper/*.xml
  77. #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  78. logging:
  79. # 输出级别
  80. level:
  81. root: info
  82. org.springframework.web: INFO
  83. com.github.binarywang.demo.wx.mp: DEBUG
  84. me.chanjar.weixin: DEBUG
  85. file:
  86. # 指定路径
  87. path: exchange-logs
  88. # 最大保存天数
  89. max-history: 7
  90. # 每个文件最大大小
  91. max-size: 10MB
  92. gsl:
  93. keyUrl: http://10.8.8.104:7041/datahub/external/api/getMD5
  94. requestUrl: http://10.8.8.104:7041/datahub/external/api/request
  95. key: RSCxZ5zN4z7cP3LVQebhcZGO/PcONtYm
  96. uid: mongolia_api
  97. fileURL: /TRS/dataexchange/file/
  98. ftp:
  99. host: 10.8.8.104
  100. port: 7042
  101. username: nmgsl
  102. password: EtDRPjdSVU
  103. targetUrl: /data/trs_cust/data/ENT
  104. fileURL: /TRS/dataexchange/file/
  105. # 三个任务的定时器配置
  106. timer:
  107. cron116: 0 0 1 ? * 1
  108. cron5000: 0 0 1 ? * 2
  109. cronFTP: 0 59 23 L * ?