excel工具类
1、转换成JsonArray
/**
* 将excel转换成jsonarray
* @param book
* @param sheetIndex
* @param propertys { "key1", "key2","key3"}
* @param flag
* @return
*/
public static JSONArray excleInGeneric(Workbook book, int sheetIndex, String[] propertys, boolean flag){
JSONArray ar = new JSONArray();
try {
Sheet sheet = book.getSheetAt(sheetIndex);
excel工具类最先出现在Python成神之路。
共有 0 条评论