style: 应用 Spotless 代码格式化
- 对所有 Java 源文件应用统一的代码格式化 - 统一缩进为 4 个空格 - 清理尾随空白字符和文件末尾换行 - 优化导入语句组织 - 总计格式化 654 个 Java 文件 有问题可以回滚或者找我聊
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
package com.starry.admin.utils;
|
||||
|
||||
import com.alibaba.excel.EasyExcel;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* @author admin
|
||||
@@ -16,7 +15,8 @@ public class ExcelUtils {
|
||||
return EasyExcel.read(is).head(pojoClass).sheet().doReadSync();
|
||||
}
|
||||
|
||||
public static void exportEasyExcel(HttpServletResponse response, Class<?> pojoClass, List<?> list, String sheetName) {
|
||||
public static void exportEasyExcel(HttpServletResponse response, Class<?> pojoClass, List<?> list,
|
||||
String sheetName) {
|
||||
try {
|
||||
EasyExcel.write(response.getOutputStream(), pojoClass).sheet(sheetName).doWrite(list);
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user