2

我正在使用 spring 集成 2.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-outbound 通道适配器帮助我吗?我在这里错过了什么吗。

4

0 回答 0