code: public static <T> Sheet writePerSheet(Sheet sheet, int _titleRow, int begin, int end, List<T> beans,
                                            List<String> properties, List<String> titles, String dateFormat) {
          Row titleRow = sheet.createRow(_titleRow);
          CellStyle cellStyle = sheet.getWorkbook().createCellStyle();
          Font font = sheet.getWorkbook().createFont();
          font.setBold(true);
          font.setFontHeightInPoints((short) 16);
          cellStyle.setFont(font);
          cellStyle.setAlignment(HorizontalAlignment.CENTER);
          cellStyle.setVerticalAlignment(VerticalAlignment.CENTER);
          sheet.setDefaultColumnWidth(16);
          for (int i = 0; i < titles.size(); i++) {
              Cell cell = titleRow.createCell(i);
              cell.setCellValue(titles.get(i));
              cell.setCellStyle(cellStyle);
          }
          //单元格样式
          CellStyle _cellStyle = sheet.getWorkbook().createCellStyle();
          _cellStyle.setAlignment(HorizontalAlignment.CENTER);
          _cellStyle.setVerticalAlignment(VerticalAlignment.CENTER);
          int counter = _titleRow + 1;
          for (int i = begin; i < (end < beans.size() ? end : beans.size()); i++) {
              Row row = sheet.createRow(counter++);
              WriteExcelUtils.writePerRow(row, beans.get(i), properties, dateFormat, _cellStyle);
          }
          return sheet;
      }
docs: 向某一Sheet中写入多个Bean
  
  @param sheet      指定Sheet
  @param _titleRow  指定写入的标题在第几行，0-based
  @param begin      指定写入的Bean从第几个开始，包含该下标,0-based
  @param end        指定写入的Bean从第几个结束，不包含该下标，0-based
  @param beans      指定写入的Beans(或者泛型为Map)
  @param properties 指定写入的bean的属性
  @param titles     指定写入的标题
  @param dateFormat 日期格式
  @return 返回传入的Sheet