forked from github/easyexcel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
848 B
34 lines
848 B
package com.alibaba.easyexcel.test.temp.read; |
|
|
|
import java.io.File; |
|
import java.util.List; |
|
import java.util.Map; |
|
|
|
import org.junit.Ignore; |
|
import org.junit.Test; |
|
import org.slf4j.Logger; |
|
import org.slf4j.LoggerFactory; |
|
|
|
import com.alibaba.excel.EasyExcel; |
|
import com.alibaba.excel.metadata.CellData; |
|
import com.alibaba.fastjson.JSON; |
|
|
|
/** |
|
* 临时测试 |
|
* |
|
* @author Jiaju Zhuang |
|
**/ |
|
@Ignore |
|
public class CommentTest { |
|
private static final Logger LOGGER = LoggerFactory.getLogger(CommentTest.class); |
|
|
|
@Test |
|
public void comment() throws Exception { |
|
File file = new File("D:\\test\\comment.xls"); |
|
List<Map<Integer, CellData>> datas = EasyExcel.read(file).sheet(0).doReadSync(); |
|
for (Map<Integer, CellData> data : datas) { |
|
LOGGER.info("数据:{}", JSON.toJSONString(data.get(0))); |
|
} |
|
} |
|
|
|
}
|
|
|