Fading Coder

One Final Commit for the Last Sprint

Building Dynamic Excel Exports with EasyExcel and Programmatic Headers

Generating Excel files whose column headers are detremined at runtime requires a structured approach. This walkthrough shows how to assemble a data-oriented export pipeline using EasyExcel, covering metadata-driven headers, data mapping, custom column widths, and multi-sheet output. Defining Column...

Dynamic Cell Style Configuration Based on Column Values Using EasyExcel

<dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>3.2.1</version> </dependency> public static void init(HttpServletResponse response, String name) { try { response.setContentType("application/vnd.openxmlformat...

Generating Excel Files with Custom Styles Using EasyExcel

Exporting Excel with Custom Cell Styles When working with EasyExcel, you can apply custom styling to both header and contant cells by implementing a cell style strategy. This approach allows fine-grained control over fonts, colors, aligmnent, and other visual properties. Service Layer Implementation...

Implementing Hierarchical Data Import and Export with Spring Boot, MyBatis Plus, and EasyExcel

This implementation demonstrates handling hierarchical data, such as product categories and subcategroies, using a relasional database. The primary category (e.g., 'Rifle') acts as the parent, and the secondary category (e.g., 'AK-47') is the child, which also contains a description. Database Schema...