导出到excel表格
public static void exportExcel(Map beans, String templateName, OutputStream out) {XLSTransformer transformer = new XLSTransformer();try {FileInputStream fis=new FileInputStream(templateName);transformer.transformXLS(fis, beans).write(out);fis.close();} catch (ParsePropertyException e) {e.printStackTrace();} catch (FileNotFoundException e) {e.printStackTrace();} catch (IOException e) {e.printStackTrace();} catch (InvalidFormatException e) {e.printStackTrace();}}