diff --git a/core/src/main/java/datart/core/common/CSVParse.java b/core/src/main/java/datart/core/common/CSVParse.java index 70f52d03d..95783c1eb 100644 --- a/core/src/main/java/datart/core/common/CSVParse.java +++ b/core/src/main/java/datart/core/common/CSVParse.java @@ -61,7 +61,7 @@ public List> parse() throws IOException { if (!file.exists()) { Exceptions.notFound(path); } - List records = CSVParser.parse(file, StandardCharsets.UTF_8, CSVFormat.DEFAULT).getRecords(); + List records = CSVParser.parse(file, StandardCharsets.UTF_8, CSVFormat.DEFAULT.withTrim()).getRecords(); if (CollectionUtils.isEmpty(records)) { return Collections.emptyList(); }