deviceservice-test.yaml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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: 192.168.2.92:8848
  34. namespace: 49ab56f7-3752-4c43-a935-a1d4024eb82b
  35. redis:
  36. host: 192.168.2.92 #Redis服务器地址
  37. database: 3 # Redis数据库索引(默认为0)
  38. port: 6379 # Redis服务器连接端口
  39. password: Fjc@2025 # Redis服务器连接密码(默认为空)
  40. prefix: fsv2_test
  41. jedis:
  42. pool:
  43. max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
  44. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  45. max-idle: 8 # 连接池中的最大空闲连接
  46. min-idle: 0 # 连接池中的最小空闲连接
  47. datasource:
  48. url: jdbc:mysql://192.168.2.93:3306/test_deviceservice?useSSL=false&serverTimezone=GMT%2b8
  49. username: fujica
  50. password: Fjc@2025
  51. #指定mybatis映射文件的地址
  52. mybatis:
  53. mapper-locations: classpath:mapper/*.xml
  54. #configuration:
  55. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  56. rocketmq:
  57. name-server: 192.168.16.20:9876;192.168.16.21:9876;192.168.16.22:9876
  58. producer:
  59. group: fujica-producer
  60. topic:
  61. topicDeviceInfo: topic_device_info_test
  62. topicDeviceOnlineStatus: topic_device_status_test
  63. consumer:
  64. topic:
  65. topicDeviceOnlineStatus: device_online_status_test
  66. heartbeat: heartbeat_event_test
  67. group:
  68. topicDeviceOnlineStatus: device_online_status_test
  69. heartbeat: device_heartbeat_event_test
  70. feign:
  71. httpclient:
  72. enabled: true #开启feign连接池
  73. max-connections: 100
  74. max-connections-per-route: 50
  75. client:
  76. config:
  77. default:
  78. connect-timeout: 2000 #默认连接超时时间
  79. read-timeout: 8000 #默认请求超时时间