1.资源地址及使用说明
https://search.maven.org/artifact/com.github.tocrhz/mqtt-spring-boot-starter/1.2.7/jar
2. POM
<dependency>
<groupId>com.github.tocrhz</groupId>
<artifactId>mqtt-spring-boot-starter</artifactId>
<version>1.2.7</version>
</dependency>
3.yml配置
4.数据采集:订阅主题
5.发布主题
6.发布主题的测试
测试命令:
7.DEMO程序下载地址
链接:https://pan.baidu.com/s/1n3flAjFQVDCcuBieQTXT9Q
提取码:ts12
--来自百度网盘超级会员V5的分享
附:idea 建立spring-boot程序抓图