Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring集成HTTP出站通道适配器的问题_Http_Adapter_Channel_Outbound - Fatal编程技术网

Spring集成HTTP出站通道适配器的问题

Spring集成HTTP出站通道适配器的问题,http,adapter,channel,outbound,Http,Adapter,Channel,Outbound,我正在使用SpringIntegration2.2.4,并尝试添加HTTP出站通道适配器以调用GET/POST REST服务。当前适配器显示在图形视图中,但当我尝试在代码中拖动并使用它时,它没有被创建 我已经根据需要添加了HTTP名称空间URI <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://ww

我正在使用SpringIntegration2.2.4,并尝试添加HTTP出站通道适配器以调用GET/POST REST服务。当前适配器显示在图形视图中,但当我尝试在代码中拖动并使用它时,它没有被创建

我已经根据需要添加了HTTP名称空间URI

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:http="http://www.springframework.org/schema/integration/http"
xmlns:int="http://www.springframework.org/schema/integration"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/integration/http 
http://www.springframework.org/schema/integration/http/spring-integration-http.xsd">


<http:outbound-channel-adapter channel=""/>

如果我试图在源XML中手动添加此项,则会出现错误,因为“匹配的通配符是严格的,但找不到元素http:outbound channel adapter的声明”


有人能帮我介绍一下http出站通道适配器示例吗?我在这里遗漏了什么。

您是否检查了这里的示例。验证是否添加了正确的依赖项。如果您添加了上述依赖项,请强制更新maven存储库。