|
|
|
@ -22,7 +22,7 @@ public class ExcelUtils {
|
|
|
|
|
* @return
|
|
|
|
|
* @throws IOException
|
|
|
|
|
*/
|
|
|
|
|
public static List<String> excelParseList(InputStream inputStream) throws IOException {
|
|
|
|
|
public List<String> excelParseList(InputStream inputStream) throws IOException {
|
|
|
|
|
List<String> list = new ArrayList<>();
|
|
|
|
|
try {
|
|
|
|
|
Workbook workbook = new XSSFWorkbook(inputStream);
|
|
|
|
@ -58,7 +58,7 @@ public class ExcelUtils {
|
|
|
|
|
* @return
|
|
|
|
|
* @throws IOException
|
|
|
|
|
*/
|
|
|
|
|
public static List<String> excelParseListByUrl(String url) throws IOException {
|
|
|
|
|
public List<String> excelParseListByUrl(String url) throws IOException {
|
|
|
|
|
List<String> list = new ArrayList<>();
|
|
|
|
|
InputStream inputStream = new FileInputStream(new File(url)) ;
|
|
|
|
|
try {
|
|
|
|
|