//poi导入excel表头后缀名是.xls
StringBuffer buffer = new StringBuffer();
buffer.append("<table cellpadding='0' border='1' cellspacing='0' bordercolor='#dcdcdc' style='font-size:13px;width:100%'>");
try {
// 构造 XSSFWorkbook 对象,strPath 传入文件路径
InputStream is = new FileInputStream(path);
XSSFWorkbook xwb = new XSSFWorkbook(is);
// 读取第一章表格内容
XSSFSheet sheet = xwb.getSheetAt(0);
// 定义 row、cell