package cn.exrick.manager.controller;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.write.metadata.WriteSheet;
import cn.exrick.manager.vo.Student2;
/**
- @author
- @version 2021年7月15日 下午11:28:26
- 类说明
/
@RestController
public class Demo33 {
public static void main(String[] args) {
try {
new Demo33().download();
System.out.println(“导出完成”);
} catch (Exception e) {
e.printStackTrace();
}
}
public void download() throws Exception {
int totalCount= 2000001;// 查询数据库数据总量&#x