public class ExcelFieldUtils extends Object
| 构造器和说明 |
|---|
ExcelFieldUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getCellValue(ExcelRowDefinition row,
int colIndex) |
static void |
main(String[] args) |
static void |
setCellValue(org.apache.poi.ss.usermodel.Cell cell,
Object o,
Field field) |
static void |
setFieldValue(Field field,
Object o,
Object cellValue,
String dateFormat)
给字段赋值
|
public static void setCellValue(org.apache.poi.ss.usermodel.Cell cell,
Object o,
Field field)
throws IllegalAccessException
public static String getCellValue(ExcelRowDefinition row, int colIndex)
public static void setFieldValue(Field field, Object o, Object cellValue, String dateFormat) throws IllegalAccessException, ParseException
field - o - cellValue - dateFormat - IllegalAccessExceptionParseExceptionpublic static void main(String[] args) throws ParseException
ParseExceptionCopyright © 2019. All rights reserved.