Spring Integration 如何实现MQTT消息队列的集成支持?
- 内容介绍
- 文章标签
- 相关推荐
本文共计4316个文字,预计阅读时间需要18分钟。
Spring 集成消息队列(MQTT)协议适配器,支持消息队列表征测试。需在项目中包含依赖:
xmldependency groupId: org.springframework.integration artifactId: spring-integration-mqtt
Spring 集成提供入站和出站通道适配器以支持消息队列遥测传输 (MQTT) 协议。
您需要将此依赖项包含在项目中:
<dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-mqtt</artifactId> <version>6.0.0</version></dependency>当前实现使用Eclipse Paho MQTT 客户端库。
XML 配置和本章的大部分内容都是关于 MQTT v3.1 协议支持和相应的 Paho 客户端的。 有关相应的协议支持,请参阅MQTT v5 支持段落。
两个适配器的配置都是使用 . 有关配置选项的更多信息,请参阅 Paho 文档。
本文共计4316个文字,预计阅读时间需要18分钟。
Spring 集成消息队列(MQTT)协议适配器,支持消息队列表征测试。需在项目中包含依赖:
xmldependency groupId: org.springframework.integration artifactId: spring-integration-mqtt
Spring 集成提供入站和出站通道适配器以支持消息队列遥测传输 (MQTT) 协议。
您需要将此依赖项包含在项目中:
<dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-mqtt</artifactId> <version>6.0.0</version></dependency>当前实现使用Eclipse Paho MQTT 客户端库。
XML 配置和本章的大部分内容都是关于 MQTT v3.1 协议支持和相应的 Paho 客户端的。 有关相应的协议支持,请参阅MQTT v5 支持段落。
两个适配器的配置都是使用 . 有关配置选项的更多信息,请参阅 Paho 文档。

