您可以使用 Apache POI 库来实现 Java 中的 Excel 导入功能。
以下是一个简单的示例代码:
import org.apache.poi.ss.usermodel.*;
import java.io.FileInputStream;
public class ExcelImport {
public static void main(String[] args) throws Exception {
FileInputStream excelFile = new FileInputStream("path/to/your/excel