studentInfo2.java 668 B

123456789101112131415161718192021222324
  1. package pub.vie.excel.example.entity;
  2. import pub.vie.excel.common.annotation.ExcelEntity;
  3. import pub.vie.excel.common.annotation.ExcelField;
  4. import pub.vie.excel.common.constant.ExcelCellIndex;
  5. import java.util.Date;
  6. @ExcelEntity(classPathSource = "students.xlsx", sheetAt = 0, skip = 1, limitRow = -1)
  7. public class studentInfo2 {
  8. @ExcelField(colIndex = ExcelCellIndex.CELL_INDEX_A)
  9. private String id;
  10. @ExcelField(colIndex = ExcelCellIndex.CELL_INDEX_B)
  11. private String name;
  12. // @ExcelField(colIndex = ExcelCellIndex.CELL_INDEX_C)
  13. // private int age;
  14. @ExcelField(colIndex = ExcelCellIndex.CELL_INDEX_D)
  15. private Date entranceDate;
  16. }