为什么我们不能在 apache camel 中使用 univocity 解析器将数据解组到 bean 中?

问题描述

univocity 解析器支持在纯 java 编写时将数据读入 bean - https://www.univocity.com/pages/univocity_parsers_tutorial#using-annotations-to-map-your-java-beans

但是当 univocity 与骆驼一起使用时,它只会将数据解组到列表或地图中 - https://camel.apache.org/components/latest/dataformats/univocity-csv-dataformat.html#_unmarshalling_usages

为什么univocity支持读入bean,camel不支持读入?

解决方法

Univocity 具有大量功能,并且尚未在其 Camel 组件中实现对 bean 映射的支持。欢迎您创建 JIRA,也欢迎贡献者添加此类功能。