读取csv文件
实现代码:
/**
* com.csvreader.CsvReader 读取 csv文件
* @param filePath
* @return
* @throws IOException
*/
private static List<String []> csvReader(String filePath) throws IOException{
if (StringUtils.isEmpty(filePath)) {
System.out.println("文件路径不可为空!");
return null;
}
if (!filePath.matches("^.+\\.(?i)(csv)$"