【问题标题】:Get Document from payload of file?从文件的有效负载中获取文档?
【发布时间】:2013-02-05 15:15:46
【问题描述】:

我有Message<File> 的有效载荷。如何从 Message 中获取 org.w3c.dom.Document 类型?

谢谢!

【问题讨论】:

    标签: java spring spring-integration


    【解决方案1】:
    <int:transformer input-channel="foo" output-channel="bar" 
        expression="T(javax.xml.parsers.DocumentBuilderFactory).newInstance().newDocumentBuilder().parse(payload)" />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-07-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-14
      • 2021-01-17
      相关资源
      最近更新 更多