|
对于最新稳定版本,请使用 Spring Integration 7.0.0! |
TCP和UDP支持
Spring Integration 提供通道适配器,用于通过互联网协议接收和发送消息。 同时提供UDP(用户数据报协议)和TCP(传输控制协议)适配器。 每个适配器都支持基于底层协议的单向通信。 此外,Spring Integration还提供简单的入站和出站TCP网关。 当需要双向通信时,这些设备会被使用。
你需要把这种依赖性纳入你的项目中:
-
Maven
-
Gradle
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-ip</artifactId>
<version>6.2.11</version>
</dependency>
compile "org.springframework.integration:spring-integration-ip:6.2.11"