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