deviceservice-pro.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. server:
  2. port: 10041
  3. servlet:
  4. encoding:
  5. charset: UTF-8
  6. force: true
  7. context-path: /device
  8. compression:
  9. enabled: true #开启数据压缩
  10. mime-types: application/json,application/xml,text/html,text/xml,text/plain
  11. min-response-size: 2048
  12. logging:
  13. file:
  14. path: log/wookit
  15. level:
  16. root: info
  17. "[javax.management]": INFO
  18. "[org.apache.http]": INFO
  19. "[org.apache.tomcat.util.net.NioEndpoint]": INFO
  20. "[sun.rmi]": INFO
  21. tracer: trace # 开启trace级别日志,在开发时可以开启此配置,则控制台可以打印es全部请求信息及DSL语句,为了避免重复,开启此项配置后,可以将EE的print-dsl设置为false.
  22. spring:
  23. application:
  24. name: deviceservice
  25. cloud:
  26. gateway:
  27. discovery:
  28. locator:
  29. lower-case-service-id: true
  30. enabled: true
  31. nacos:
  32. discovery:
  33. server-addr: 10.16.0.49:8848
  34. namespace: 02f60846-3747-424e-a598-2ea9e66dfe87
  35. redis:
  36. host: r-wz968zear8t0d8bkbg.redis.rds.aliyuncs.com #Redis服务器地址
  37. database: 3 # Redis数据库索引(默认为0)
  38. port: 6379 # Redis服务器连接端口
  39. password: yn8Vh85rxvtUPnqB # Redis服务器连接密码(默认为空)
  40. prefix: fsv2_pro
  41. jedis:
  42. pool:
  43. max-active: 100 # 连接池最大连接数(使用负值表示没有限制)
  44. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  45. max-idle: 20 # 连接池中的最大空闲连接
  46. min-idle: 10 # 连接池中的最小空闲连接
  47. datasource:
  48. url: jdbc:mysql://rm-wz9gzvutko8m16mey.mysql.cn-shenzhen.rds.aliyuncs.com:3306/deviceservice?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2b8
  49. username: fujicaytcuser
  50. password: BGbn4jP!mq4jxn@o4fQyp5*@
  51. type: com.zaxxer.hikari.HikariDataSource
  52. driver-class-name: com.mysql.cj.jdbc.Driver
  53. validation-timeout: 3000
  54. idle-timeout: 60000
  55. minimum-idle: 30
  56. read-only: false
  57. connection-timeout: 60000 #请求连接的超时时间
  58. maximum-pool-size: 100 #最大连接数量
  59. max-lifetime: 1800000 #连接的最长生命周期
  60. connection-test-query: SELECT 1
  61. #指定mybatis映射文件的地址
  62. mybatis:
  63. mapper-locations: classpath:mapper/*.xml
  64. rocketmq:
  65. name-server: 10.16.0.80:9876;10.16.0.81:9876;10.16.0.82:9876
  66. producer:
  67. group: fujica-producer
  68. topic:
  69. topicDeviceInfo: topic_device_info_pro
  70. topicDeviceOnlineStatus: topic_device_status_pro
  71. consumer:
  72. topic:
  73. topicDeviceOnlineStatus: device_online_status_pro
  74. heartbeat: heartbeat_event_pro
  75. group:
  76. topicDeviceOnlineStatus: device_online_status_pro
  77. heartbeat: device_heartbeat_event_pro
  78. feign:
  79. httpclient:
  80. enabled: true #开启feign连接池
  81. max-connections: 100
  82. max-connections-per-route: 50
  83. client:
  84. config:
  85. default:
  86. connect-timeout: 2000 #默认连接超时时间
  87. read-timeout: 8000 #默认请求超时时间