application.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. server:
  2. port: 8029
  3. netty:
  4. connection-timeout: 8000
  5. spring:
  6. # redis:
  7. # # host: 49.4.50.80
  8. # host: 10.83.68.94
  9. # port: 6379
  10. # timeout: 100000
  11. # # 集群环境打开下面注释,单机不需要打开
  12. # # cluster:
  13. # # 集群信息
  14. # # nodes: xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx
  15. # # #默认值是5 一般当此值设置过大时,容易报:Too many Cluster redirections
  16. # # maxRedirects: 3
  17. # password:
  18. # application:
  19. # name: test
  20. # jedis:
  21. # pool:
  22. # max-active: 8
  23. # min-idle: 0
  24. # max-idle: 8
  25. # max-wait: -1
  26. # database: 1
  27. datasource:
  28. type: com.alibaba.druid.pool.DruidDataSource
  29. driver-class-name: oracle.jdbc.OracleDriver
  30. #外网
  31. url: jdbc:oracle:thin:@10.83.68.165:1521:gdsj
  32. # url: jdbc:oracle:thin:@49.4.50.80:1521:gdnxfd
  33. # url: jdbc:oracle:thin:@172.168.1.14:1521:gdnxfd
  34. username: gdprod
  35. password: gd123
  36. oracle-schema=:
  37. # type: com.alibaba.druid.pool.DruidDataSource
  38. # url: jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf8&serverTimezone=UTC
  39. # username: root
  40. # password: root
  41. # driver-class-name: com.mysql.jdbc.Driver
  42. druid:
  43. max-active: 20
  44. initial-size: 1
  45. min-idle: 3
  46. max-wait: 60000
  47. time-between-eviction-runs-millis: 60000
  48. min-evictable-idle-time-millis: 300000
  49. test-while-idle: true
  50. test-on-borrow: false
  51. test-on-return: false
  52. #热启动
  53. devtools:
  54. restart:
  55. enabled: true
  56. additional-paths: src/main/java
  57. exclude: test/**
  58. timeseries:
  59. db-type: redis #"${DATABASE_TYPE:sql}" # cassandra/kairosDB/hbase/opentsDB/influxDB/TiDB
  60. #taos数据库
  61. taos:
  62. server_ip: 10.83.68.154
  63. server_port: 6030
  64. user_name: root
  65. password: taosdata
  66. pool_size: 5
  67. max_pool_size: 20
  68. database: hebei
  69. ##taos数据库
  70. #mongodb:
  71. # mongodb_ip: 10.83.68.94
  72. # mongodb_port: 27017
  73. # mongodb_perHost: 200
  74. # mongodb_threadsAllowed: 200
  75. # mongodb_connectTimeout: 60000
  76. # mongodb_maxWaitTime: 60000
  77. # mongodb_socketTimeout: 60000
  78. #适配器测点表
  79. windturbine.point.table_name: view_tspoint
  80. #备注
  81. #1、安装taos数据库客户端
  82. #2、配置C:\TDengine\cfg\taos.cfg文件
  83. #3、配置hosts文件
  84. #4、修改pom.xml文件的涛思数据库版本
  85. #5、修改application.yaml文件hive、taos的ip、port等
  86. #6、涛思数据库的版本要与服务器保持一致
  87. #7、部署时在服务器安装taos数据库客户端