application-prod.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. # 数据源配置
  2. spring:
  3. datasource:
  4. type: com.alibaba.druid.pool.DruidDataSource
  5. driverClassName: com.mysql.cj.jdbc.Driver
  6. druid:
  7. # 主库数据源
  8. master:
  9. url: jdbc:mysql://198.17.188.51:3306/cbwqpf?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  10. username: root
  11. password: cbwq!xintong
  12. # 从库数据源(嗅探)
  13. slaveais:
  14. # 从数据源开关/默认关闭
  15. enabled: true
  16. url: jdbc:mysql://198.17.23.18:3306/ais_database?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  17. username: js_test
  18. password: Js@123456
  19. # 从库数据源(光谱)
  20. slaveso2:
  21. # 从数据源开关/默认关闭
  22. enabled: true
  23. url: jdbc:mysql://198.17.188.51:3306/so2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  24. username: root
  25. password: cbwq!xintong
  26. # 从库数据源(黑烟)
  27. slaveblack:
  28. # 从数据源开关/默认关闭
  29. enabled: true
  30. url: jdbc:mysql://198.17.23.20:3306/smoke_api?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  31. username: root_shipface
  32. password: '@P5zQQMbax8xx'
  33. # 初始连接数
  34. initialSize: 5
  35. # 最小连接池数量
  36. minIdle: 10
  37. # 最大连接池数量
  38. maxActive: 20
  39. # 配置获取连接等待超时的时间
  40. maxWait: 60000
  41. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  42. timeBetweenEvictionRunsMillis: 60000
  43. # 配置一个连接在池中最小生存的时间,单位是毫秒
  44. minEvictableIdleTimeMillis: 300000
  45. # 配置一个连接在池中最大生存的时间,单位是毫秒
  46. maxEvictableIdleTimeMillis: 900000
  47. # 配置检测连接是否有效
  48. validationQuery: SELECT 1 FROM DUAL
  49. testWhileIdle: true
  50. testOnBorrow: false
  51. testOnReturn: false
  52. webStatFilter:
  53. enabled: true
  54. statViewServlet:
  55. enabled: true
  56. # 设置白名单,不填则允许所有访问
  57. allow:
  58. url-pattern: /druid/*
  59. # 控制台管理用户名和密码
  60. login-username: ruoyi
  61. login-password: 123456
  62. filter:
  63. stat:
  64. enabled: true
  65. # 慢SQL记录
  66. log-slow-sql: true
  67. slow-sql-millis: 1000
  68. merge-sql: true
  69. wall:
  70. config:
  71. multi-statement-allow: true
  72. # redis 配置
  73. redis:
  74. # 地址
  75. host: localhost
  76. # 端口,默认为6379
  77. port: 6379
  78. # 数据库索引
  79. database: 0
  80. # 密码
  81. password: cbwq!xintong
  82. # 连接超时时间
  83. timeout: 10s
  84. lettuce:
  85. pool:
  86. # 连接池中的最小空闲连接
  87. min-idle: 0
  88. # 连接池中的最大空闲连接
  89. max-idle: 8
  90. # 连接池的最大数据库连接数
  91. max-active: 8
  92. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  93. max-wait: -1ms
  94. elasticsearch:
  95. port: 9200
  96. ip: 198.17.188.51
  97. type: http #访问方式
  98. numberOfReplicas: 2 #副本数
  99. numberOfShards: 5 #分片数
  100. defaultIndex: materials #默认加载索引
  101. searchTimeOut: 10 #搜索超时时长,单位:秒
  102. masterShardTimeOut: 1 #主分片执行更新的超时时长 ,单位:秒
  103. canal:
  104. configs:
  105. - hostname: 127.0.0.1
  106. port: 11111
  107. destination: heiyan
  108. - hostname: 127.0.0.1
  109. port: 11111
  110. destination: so2
  111. - hostname: 127.0.0.1
  112. port: 11111
  113. destination: ais
  114. # Swagger配置
  115. swagger:
  116. # 是否开启swagger
  117. enabled: false
  118. # 请求前缀
  119. pathMapping: /prod-api
  120. # 子平台
  121. black:
  122. snapImgUrl: http://127.0.0.1:8090/api/shipface/snap/imgUrl?id=
  123. # 第三方接口
  124. third:
  125. shipEepReportRecInfo: http://198.17.188.111:6201/huiyan/getShipEepReportRec # 船舶进出港记录
  126. shipBaseInfo: http://198.17.239.239:7999/getInfosByCondition # 船舶基本信息