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