From eb9411c58c32360d9125b7ec566d499aa1f5e3ff Mon Sep 17 00:00:00 2001 From: gaojie Date: Mon, 14 Jan 2019 18:30:39 +0800 Subject: [PATCH] fix --- test/build.gradle | 3 --- test/src/main/java/ExcelUtils.java | 8 +++++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/test/build.gradle b/test/build.gradle index 7ab6dcbf8..b92adebcb 100644 --- a/test/build.gradle +++ b/test/build.gradle @@ -12,9 +12,6 @@ repositories { } dependencies { - compile project(":netty") - testCompile group: 'junit', name: 'junit', version: '4.12' compile("org.apache.poi:poi-ooxml:3.12") - } \ No newline at end of file diff --git a/test/src/main/java/ExcelUtils.java b/test/src/main/java/ExcelUtils.java index 8a2e59552..6d16ce5cb 100644 --- a/test/src/main/java/ExcelUtils.java +++ b/test/src/main/java/ExcelUtils.java @@ -11,7 +11,7 @@ import java.util.List; import java.util.Map; public class ExcelUtils { - private static final Logger LOGGER = LoggerFactory.getLogger(ExcelUtils.class); +// private static final Logger LOGGER = LoggerFactory.getLogger(ExcelUtils.class); private static boolean isWrite = true; // excel文件地址 private static String excelPath ="tmp/"; @@ -51,7 +51,8 @@ public class ExcelUtils { Object cellData; sheet = wb.getSheetAt(0); String sheetName = sheet.getSheetName(); - LOGGER.info("collection name={}", sheetName); + System.out.println("buildDataInfo => collection name="+sheetName); +// LOGGER.info("collection name={}", sheetName); int rownum = sheet.getPhysicalNumberOfRows(); FileWriter fw = new FileWriter(path + sheetName + ".txt"); PrintWriter out = new PrintWriter(fw); @@ -91,7 +92,8 @@ public class ExcelUtils { private static void bulidMapInfo(Workbook wb) throws IOException { Sheet sheet = wb.getSheetAt(0); String sheetName = sheet.getSheetName(); - LOGGER.info("collection name={}", sheetName); + System.out.println("bulidMapInfo => collection name="+sheetName); +// LOGGER.info("collection name={}", sheetName); int rowNum = sheet.getPhysicalNumberOfRows(); FileWriter fw = new FileWriter(path + sheetName + ".txt"); PrintWriter out = new PrintWriter(fw);