| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- spring:
- application:
- name: slope-detection
- cloud:
- nacos:
- discovery:
- # 服务注册地址
- server-addr: 10.10.10.230:8848
- # 命名空间
- namespace: slope-manage-service
- # 共享配置
- group: slope-manage-service
- config:
- # 配置中心地址
- server-addr: 10.10.10.230:8848
- # 配置文件格式
- file-extension: yaml
- # 命名空间
- namespace: slope-manage-service
- # 共享配置
- group: slope-manage-service
- #可以读多个配置文件 需要在同一个命名空间下面可以是不同的组
- extension-configs:
- - dataId: slope-common.yml
- group: slope-manage-service
- refresh: true
- ## MQTT##
- mqtt:
- send:
- #完成超时时间
- completionTimeout: 3000
- #通过mqtt发送消息验证所需用户名
- username: test
- #通过mqtt发送消息验证所需密码
- password: test
- #连接的mqtt地址
- url: tcp://10.10.10.225:1883
- #客户端id
- clientId: mqttx_12411c5cec
- #推送主题 后面跟着#是监控下面所有的话题
- topic: slope
- #topic: my-test
- # 会话心跳时间
- keepAliveInterval: 20
- # 设置连接超时时间
- connectionTimeout: 3000
- timeout: 10
- keepalive: 20
- # 要消费的topic配置
- receive:
- topic: slopePush/slopePull/test/out,test,slope,sharjeck/ai/test/out
|