78.11. 使用 Spring 配置目的地和 conduit

78.11.1. 命名空间

用于配置 Camel 传输端点的元素在命名空间 http://cxf.apache.org/transports/camel 中定义。通常会使用前缀 camel 来引用。要使用 Camel 传输配置元素,您需要将下面显示的行添加到端点配置文件的 beans元素中。另外,您需要将配置元素的命名空间添加到 xsi:schemaLocation 属性。

添加配置命名空间

<beans ...
       xmlns:camel="http://cxf.apache.org/transports/camel
       ...
       xsi:schemaLocation="...
                           http://cxf.apache.org/transports/camel
                           http://cxf.apache.org/transports/camel.xsd
                          ...>