Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将标题行中带有空格的 CSV 文件直接导入使用CsvMapper.schemaFor(Class<>). 自然,各个成员在标识符中不能有空格。有没有办法告诉映射器在哪个成员上映射哪些列?
CsvMapper.schemaFor(Class<>)
只需在您的 POJO 模型中映射字段
@JsonProperty("Property with spaces") private String propertyWithSpaces;