bootstrap-dev.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. spring:
  2. application:
  3. name: slope-detection
  4. cloud:
  5. nacos:
  6. discovery:
  7. # 服务注册地址
  8. server-addr: 10.10.10.230:8848
  9. # 命名空间
  10. namespace: slope-manage-service
  11. # 共享配置
  12. group: slope-manage-service
  13. config:
  14. # 配置中心地址
  15. server-addr: 10.10.10.230:8848
  16. # 配置文件格式
  17. file-extension: yaml
  18. # 命名空间
  19. namespace: slope-manage-service
  20. # 共享配置
  21. group: slope-manage-service
  22. #可以读多个配置文件 需要在同一个命名空间下面可以是不同的组
  23. extension-configs:
  24. - dataId: slope-common.yml
  25. group: slope-manage-service
  26. refresh: true
  27. ## MQTT##
  28. mqtt:
  29. send:
  30. #完成超时时间
  31. completionTimeout: 3000
  32. #通过mqtt发送消息验证所需用户名
  33. username: test
  34. #通过mqtt发送消息验证所需密码
  35. password: test
  36. #连接的mqtt地址
  37. url: tcp://10.10.10.225:1883
  38. #客户端id
  39. clientId: mqttx_12411c5cec
  40. #推送主题 后面跟着#是监控下面所有的话题
  41. topic: slope
  42. #topic: my-test
  43. # 会话心跳时间
  44. keepAliveInterval: 20
  45. # 设置连接超时时间
  46. connectionTimeout: 3000
  47. timeout: 10
  48. keepalive: 20
  49. # 要消费的topic配置
  50. receive:
  51. topic: slopePush/slopePull/test/out,test,slope,sharjeck/ai/test/out