Repository navigation
Releases: BBackJK/xell
Releases ยท BBackJK/xell
Release list
v0.3.2
v0.3.1
๐ Bug Fix
- ์คํ๋ง์์ ๊ตฌ๋ ์ multiple-slf4j ์ด์ ํด๊ฒฐ
Full Changelog: v0.2.5...v0.3.1
v0.3.0
v0.2.4
๐ฅ Feature
- MapPointExcelWriter ๊ธฐ๋ฅ ์ถ๊ฐ.
- lombok ์์กด์ฑ ์ญ์
๐ How To Use
@Controller
@Slf4j
public class ExcelController {
@GetMapping(value = "/mapper/excel/map")
public void mapperExcelDownload(HttpServletResponse response) throws IOException {
String originExcelFilePath = this.baseProjectFilePath + File.separator + "excel" + File.separator + "sample1.xlsx";
Map<String, String> data = new HashMap<>();
data.put("name", "ํ๊ธธ๋1");
data.put("age", "10");
data.put("hp", "010-1234-1234");
PointExcelWriter<Map> mapPointExcelWriter = new MapPointExcelWriter();
mapPointExcelWriter.setInputStream(new FileInputStream(originExcelFilePath));
mapPointExcelWriter.setData(data);
mapPointExcelWriter.download(response, "๋งต_ํฌ์ธํธ_์์
_๋ผ์ดํฐ.xlsx");
}
}What's Changed
Full Changelog: v0.2.3...v0.2.4
v0.2.4-alpha
๐ฅ feat : Map Point Excel Writer ์ถ๊ฐ
- Reflect ๊ฐ ์๋ Map<String, String> ์ ์ด์ฉํ Writer ์ถ๊ฐ
Full Changelog: v0.2.3...v0.2.4-alpha
v0.2.3
๐ฅ Add Feature List Grid Excel Writer
how to use
@Controller
public class ExcelController {
@GetMapping(value = "/member/excel/list")
public void listExcelDownload(HttpServletResponse response) {
List<List<String>> header = new ArrayList<>();
List<String> headerRow = new ArrayList<>();
headerRow.add("ํค๋1");
headerRow.add("ํค๋2");
headerRow.add("ํค๋3");
headerRow.add("ํค๋4");
header.add(headerRow);
List<List<Object>> body = new ArrayList<>();
int loopCount = 4;
for (int i=0; i<loopCount;i++) {
List<Object> bodyRow = new ArrayList<>();
bodyRow.add((i+1) + "-๋ฐ๋1");
bodyRow.add((i+1) + "-๋ฐ๋2");
bodyRow.add((i+1) + "-๋ฐ๋3");
bodyRow.add((i+1) + "-๋ฐ๋4");
body.add(bodyRow);
}
GridExcelWriter<List<Object>> temp = new ListGridExcelWriter(header);
temp.setDataList(body);
temp.download(response, "๋ฆฌ์คํธ_๊ทธ๋ฆฌ๋_์์
_๋ผ์ดํฐ.xlsx");
}
}What's Changed
Full Changelog: v0.1.0...v0.2.3
v0.2.3-alpha
๐ ListGridExcelWriter write body method ์์
- writeBody abstract method implement contents fixed.
changelog
- add only header constructure
Full Changelog: v0.2.2-alpha...v0.2.3-alpha
v0.2.2-alpha
๐ List Grid Excel Writer ์์ฑ์ ์ ๊ทผ์ ์ด์ ์์