0

我需要的步骤:

  1. 读取文件
  2. 将文件中的 xml 字符串作为文本
  3. 将文本作为消息推送到队列

如何在 Spring io 中进行配置?文件入站通道,出站通道队列,如何添加处理器?

4

1 回答 1

1

检查此示例代码

https://github.com/spring-projects/spring-integration-samples/tree/master/basic/file

在下面的配置中

https://github.com/spring-projects/spring-integration-samples/blob/master/basic/file/src/main/resources/META-INF/spring/integration/fileCopyDemo-file.xml

而不是<file:outbound-channel-adapter你可以有你选择的出站适配器

于 2014-07-07T10:14:48.357 回答