275.4. 示例

在以下示例中,我们使用 URI 中的 ref: 来引用 spring ID, endpoint2 的端点:

当然,您可以改为使用 ref 属性:

<to ref="endpoint2"/>

这也是编写更常见的方法。