zhangxin 1 месяц назад
Родитель
Сommit
cdd432f32d
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      prod-line-admin/src/main/resources/application.yml

+ 14 - 0
prod-line-admin/src/main/resources/application.yml

@@ -265,6 +265,20 @@ config-center:
 #    consumeThreadMax: 32
 #    #设置一次消费消息的条数,默认为1条
 #    consumeMessageBatchMaxSize: 1
+#MQTT配置
+mqtt :
+  # MQTT服务端地址 多个使用逗号分割如:tcp://192.168.0.234:1883,tcp://192.168.0.235:1883
+  url: tcp://117.72.113.54:1883
+  #用户名
+  username: admin
+  password: eW8kAH3WMZ5B5TTD
+  #客户端id 不能重复
+  client:
+    id: ${spring.application.name}
+  #MQTT 默认订阅主题
+    topic:
+      default: TestTopic
+
 
 jfrm:
   swagger: