Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个与骆驼上下文编程有关的问题。
我正在使用下载路径,将文件下载为 test.cot 我需要将此文件放入另一个路径,并将 test.cot 转换为 test.xml。
有谁知道如何在骆驼上下文中用 spring xml 编写它?
提前致谢!
你看过File2 组件吗?
关于如何配置它有一些很好的例子。
对于您给出的示例,这可能是第二条路线(使用direct调用):
<route> <from uri="direct:report"/> [...] <to uri="file:target/reports/?fileName=test.xml"/> </route>
如果需要,将 [...] 替换为从 .col 到 .xml格式的一些转换。