application.yaml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. server:
  2. port: 8011
  3. max-http-header-size: 128KB
  4. tomcat:
  5. connection-timeout: 3000
  6. spring:
  7. application:
  8. name: data-adapter
  9. jpa:
  10. show-sql: false
  11. cache:
  12. type: SIMPLE
  13. datasource:
  14. # -------------------------1区mysql/2区oracle---------------------------------------
  15. driver-class-name: oracle.jdbc.OracleDriver
  16. url: jdbc:oracle:thin:@123.60.213.70:1521:gdnxfd
  17. username: nxfdprod
  18. password: gdnxfd123
  19. # ----------------------------------------------------------------
  20. # driver-class-name: com.mysql.jdbc.Driver
  21. # url: jdbc:mysql://123.60.219.66/wisdom_cs_hnj?useUnicode=true&characterEncoding=UTF-8
  22. # username: root
  23. # password: gyeepd@123
  24. # ----------------------------------------------------------------
  25. type: com.alibaba.druid.pool.DruidDataSource
  26. druid:
  27. max-active: 20
  28. initial-size: 1
  29. min-idle: 3
  30. max-wait: 60000
  31. time-between-eviction-runs-millis: 60000
  32. min-evictable-idle-time-millis: 300000
  33. test-while-idle: true
  34. test-on-borrow: false
  35. test-on-return: false
  36. profiles:
  37. active: nx
  38. # redis:
  39. # database: 2
  40. # host: 192.168.2.5
  41. # password:
  42. # port: 6379
  43. # timeout: 60000
  44. # jedis:
  45. # pool:
  46. # maxTotal: 20
  47. # maxIdle: 20
  48. # maxwait: 60000
  49. # minIdle: 10
  50. # 此处Key不可改变
  51. knife4j:
  52. redis:
  53. # 是否采用json序列化方式,若不采用jackson序列化
  54. jsonSerialType: 'Fastjson'
  55. host: 114.55.105.194
  56. password: wanghs123
  57. port: 6379
  58. databases: [ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 ] # 要使用的库,会根据此处填写的库生成redisTemplate
  59. timeout: 60s
  60. lettuce: # lettuce基于netty,线程安全,支持并发
  61. pool:
  62. max-active: 50
  63. max-wait: -1ms
  64. max-idle: 8
  65. min-idle: 0
  66. cache:
  67. type: Simple
  68. timeseries:
  69. db-type: taos #"${DATABASE_TYPE:sql}" # cassandra/kairosDB/hbase/opentsDB/influxDB/TiDB
  70. #db-type: hadoop #"${DATABASE_TYPE:sql}" # cassandra/kairosDB/hbase/opentsDB/influxDB/TiDB
  71. #golden 数据库信息
  72. golden:
  73. server_ip: 123.60.213.70
  74. #server_ip: 172.168.1.3
  75. server_port: 6327
  76. user_name: sa
  77. password: golden
  78. pool_size: 10
  79. max_pool_size: 100
  80. #单次查询历史原始数据的数量上限
  81. query_history_limit: 100000
  82. #hadoop数据库信息
  83. hadoop:
  84. #查询上一个值的最多访问次数 2的8次方,增加步长为60分钟,如:t0-60,t0-120,t0-240....
  85. lastValueSearch: 8
  86. urlMap:
  87. DJL: http://192.168.1.61:4242/api/
  88. DQ: http://192.168.1.62:4242/api/
  89. GF: http://192.168.1.63:4242/api/
  90. GGL: http://192.168.1.64:4242/api/
  91. FGL: http://192.168.1.66:4242/api/
  92. FJ: http://192.168.1.69:4243/api/
  93. JSFW: http://192.168.1.67:4242/api/
  94. #仅限于查询NSSDQN,NXDQDI,SBQNWDQ,SBQXLDQ
  95. DQ2: http://192.168.1.62:10001/api/
  96. #taos数据库
  97. taos:
  98. server_ip: 192.168.2.252
  99. server_port: 6030
  100. user_name: root
  101. password: taosdata
  102. pool_size: 10
  103. max_pool_size: 100
  104. #适配器链接taos数据库配置信息
  105. taoscz:
  106. server_ip: 123.60.219.66
  107. server_port: 6041
  108. db_name: hnj_fdc
  109. user_name: root
  110. password: taosdata
  111. pool_size: 10
  112. max_pool_size: 100
  113. driver_type: com.taosdata.jdbc.rs.RestfulDriver
  114. #driver_type: com.taosdata.jdbc.TSDBDriver
  115. #taos中ai测点的超级表名
  116. di_stable_name: windturbinedi
  117. #taos中di测点的超级表名
  118. ai_stable_name: windturbineai
  119. #EDOS 数据库信息
  120. edos:
  121. server_ip: 192.168.1.100
  122. server_port: 10010
  123. default_connections: 1
  124. incremental_connections: 1
  125. max_connections: 10
  126. # Publish 发布服务配置
  127. publish:
  128. rtdb_scan_interval: 1000
  129. publish_interval: 5000
  130. #是否缓存所有风机测点
  131. isLoadAllTag: true
  132. #是否启动websocket推送
  133. websocket_start: false
  134. #websocket推送风机基本信息统一编码
  135. uniformcode:
  136. wind_speed_code: AI022
  137. roll_speed_code: AI128
  138. power_code: AI130
  139. status_code: FJZT8
  140. lock_code: XDSL
  141. pv_I: AIG060 #电流-A相
  142. pv_U: AIG061 #电压-A相
  143. pv_P: AI130 #功率-有功功率
  144. pv_statue: FJZT #状态