【发布时间】:2018-05-22 14:04:28
【问题描述】:
最好解释一下。
我想要的是 DSL 中的验证 xml,它根据 xml 的字段之一应用一个或其他 xsd。
现在看起来是这样的:
从 MongoDB 读取 -> 拆分 JSON 拥有的文件 -> 尝试验证。 但我想作为参数传递的是相同的 XML,而不是“classpath:validation.xsd”。
return IntegrationFlows.from(configurationInbound(factory))
.split(Configuration.class,m->m.getFiles().values())
.filter(new XmlValidatingMessageSelector(commonResources.getResource("classpath:validation.xsd"),
SchemaType.XML_SCHEMA))
有什么办法吗?
【问题讨论】:
标签: spring-integration spring-integration-dsl