OpenCSV: How to create CSV file from POJO with custom column headers and custom column positions?
问题 I have created a MappingsBean class where all the columns of the CSV file are specified. Next I parse XML files and create a list of mappingbeans. Then I write that data into CSV file as report. I am using following annotations: public class MappingsBean { @CsvBindByName(column = "TradeID") @CsvBindByPosition(position = 0) private String tradeId; @CsvBindByName(column = "GWML GUID", required = true) @CsvBindByPosition(position = 1) private String gwmlGUID; @CsvBindByName(column = "MXML GUID",