Camel Bindy: how to ignore last columns

旧巷老猫 提交于 2019-12-11 04:26:12

问题


I have a CSV file, which I'm parsing using Bindy. I have created a CsvRecord class with all the DataField. Now, they have added new columns to the CSV file and I want Bindy to just ignore them. How do I do that? I know I could change the code adding the extra fields and just ignore them, but I don't want to have to release a new version of my software every time somebody decides to add extra columns to the input file. Thank you!


回答1:


You may need to add one extra field, and then configure bindy to use autospanLine = true to allow that one extra field be like a garbage field for any additional columns there may come now or in the future.



来源:https://stackoverflow.com/questions/46304383/camel-bindy-how-to-ignore-last-columns

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!