228.5. 路由示例

Spring XML 中定义的以下路由在集合上执行操作 findOne

从 GridFS 获取文件

<route>
  <from uri="direct:start" />
  <!-- using bean 'mongoBean' defined above -->
  <to uri="mongodb-gridfs:mongoBean?database=${mongodb.database}&amp;operation=findOne" />
  <to uri="direct:result" />
</route>