Search in sources :

Example 1 with HeaderDemo

use of com.hummer.excel.plugin.test.model.HeaderDemo in project hummer-framework by hummer-team.

the class ReaderTest method main.

public static void main(String[] args) {
    String path = "C:\\Users\\Administrator\\Desktop\\test.xlsx";
    File file = new File(path);
    if (file == null || !file.isFile()) {
        return;
    }
    ExcelTemplate<HeaderDemo> template = ExcelTemplate.getInstance(HeaderDemo.class);
    template.readTopSheet(file, null);
}
Also used : HeaderDemo(com.hummer.excel.plugin.test.model.HeaderDemo) File(java.io.File)

Aggregations

HeaderDemo (com.hummer.excel.plugin.test.model.HeaderDemo)1 File (java.io.File)1