All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.gjing.excel.ExcelUtil Maven / Gradle / Ivy

The newest version!
package cn.gjing.excel;

import cn.gjing.annotation.ExcludeParam;
import cn.gjing.annotation.NotNull;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author Gjing
 **/
public class ExcelUtil {

    /**
     * Excel export
     *
     * @param response response
     * @param list     Data that needs to be exported
     * @param headers  excel headers
     * @param title    Excel file name
     * @param info     Excel introduction, Pass null or "" if you don't need it
     */
    @NotNull
    public static void excelExport(HttpServletResponse response, @ExcludeParam List list, String[] headers, String title, @ExcludeParam String info) {
        ExportExcel.generateHaveExcelName(response, list, headers, title, info);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy