当我使用paho和spring框架在应用程序中修复客户端的一些问题时,我发现了spring集成。我不知道这是否能解决我的问题,我甚至不知道这是什么。
有人能解释一下这两者的区别吗?
spring框架是否给泛美卫生组织带来了集成解决的错误?
或者存够使用这两种技术是分开的吗?
我使用的依赖项是:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>1.2.5.RELEASE</version>
</dependency>
<dependency>
<!-- Import dependency management from Spring Boot -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>1.2.5.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>以及:
<dependency>
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
<groupId>org.eclipse.paho</groupId>
<version>1.0.2</version>
</dependency>它下面的依赖关系的整合将是相当痛苦的。我想知道这样做是否有什么好处。
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-mqtt</artifactId>
<version>4.0.4.RELEASE</version>
</dependency>谢谢大家!
发布于 2015-10-30 09:07:11
Spring集成是Spring系统中的子框架,它允许为企业应用集成方便地配置企业集成模式。
如果您想使用Source、Filter、Accumulator、Processor、Sink之类的具有高度内聚性和松散耦合组件的体系结构来处理数据,这是很好的。
它是理想的使用,当您有多个系统,说不同的协议在一起,需要集成到与其他系统,而不大惊小怪。
https://stackoverflow.com/questions/33431555
复制相似问题