347.8. Spring DSL
以下示例演示了如何使用 Spring 配置 thrift 数据类型使用 Thrift to unmarshal
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="direct:start"/> <unmarshal> <thrift instanceClass="org.apache.camel.dataformat.thrift.generated.Work" /> </unmarshal> <to uri="mock:result"/> </route> </camelContext>