MyExcel 3.3.0.GA release, support for importing images

MyExcel, is a set of import, export, encryption, Excel and many other features of Java toolkit.

MyExcel constructed using declarative syntax, read Excel, specific operational details POI shield (no perception of the POI), to develop alternative conventional techniques, such construct (from the simple to the highly complex Excel) Excel and reading becomes very convenient .

The Import:

List<ArtCrowd> result = SaxExcelReader.of(ArtCrowd.class)
        .sheet(0) // 0代表第一个,如果为0,可省略该操作,也可sheet("名称")读取
        .rowFilter(row -> row.getRowNum() > 0) // 如无需过滤,可省略该操作,0代表第一行
        .beanFilter(ArtCrowd::isDance) // bean过滤
        .read(path.toFile());// 

In addition, MyExcel has been used in the actual production environment, export daily read Excel data close to the hundreds of millions, memory footprint, low jitter, enough to cope with the vast majority of scenarios.

  • Import : Provides simple API, read the contents of Excel, and converted to List <Bean>.
  • Export : fast mass data derived a simple list, may be generated high complexity Excel layouts, layout refers complex comprising a plurality of irregular merged cells, background color, font size, italics, drop-down lists, etc., can be automatically divides Excel generating a zip archive.

This release updates the following points:

  • Repair bold font style and color style can not coexist issue;
  • Multi-sheet repair SaxExcelReader reading is abnormal;
  • Repair underlined hyperlinks no problem;
  • Generating the read repair csv unidentified coding problem;
  • Bean fields covered by the same name without repair problems;
  • Repair Bean parent class default export field in question after the subclass;
  • Support importing images;
  • Support Template images exported;
  • Reads a negative form of support brackets (financial format);
  • BigInteger supports reading;
  • New DefaultExcelReader \ SaxExcelReader noTrim method;
  • Optimization DefaultExcelReader \ SaxExcelReader, the default when reading trim;
  • Optimization DefaultStreamExcelBuilder producer-consumer model, to avoid the risk of uncontrolled consumer thread;
  • Read logic optimization, to reduce the frequency of memory allocation;

Other specific venue and see the documentation: MyExcel document

If you have questions please issue raised, the answer will be given as soon as possible.

Export Example:

@GetMapping("/default/excel/example")
public void defaultBuild(HttpServletResponse response) throws Exception {
    List<ArtCrowd> dataList = this.getDataList();
    Workbook workbook = DefaultExcelBuilder.of(ArtCrowd.class)
            .build(dataList);
    AttachmentExportUtil.export(workbook, "艺术生信息", response);
}

Guess you like

Origin www.oschina.net/news/112262/myexcel-3-3-0-ga-released
Recommended