HTTP Support

Spring Integration的HTTP支持允许运行HTTP请求和处理入站HTTP请求。HTTP支持包括以下网关实现:HttpInboundEndpoint`和`HttpRequestExecutingMessageHandler。另请参阅WebFlux Support

Spring Integration’s HTTP support allows for the running of HTTP requests and the processing of inbound HTTP requests. The HTTP support consists of the following gateway implementations: HttpInboundEndpoint and HttpRequestExecutingMessageHandler. See also WebFlux Support.

你需要将此依赖项包含在你的项目中:

You need to include this dependency into your project:

  • Maven

  • Gradle

<dependency>
    <groupId>org.springframework.integration</groupId>
    <artifactId>spring-integration-http</artifactId>
    <version>{project-version}</version>
</dependency>
compile "org.springframework.integration:spring-integration-http:{project-version}"

jakarta.servlet:jakarta.servlet-api 依赖项必须在目标 Servlet 容器上提供。

The jakarta.servlet:jakarta.servlet-api dependency must be provided on the target Servlet container.