Jaxcel, built on Apache POI, simplifies and optimizes the process of exporting data to Excel spreadsheets in Java applications. It provides a class-based approach to defining export configurations, making it straightforward to generate Excel files from your Java objects.
- Class-Based Configuration
- Apache POI Integration
- Easy to Use
- Flexible
Jaxcel.generateExcelFile(data = List<yourData>, fileName = "fileName", clazz = YourClass::class.java)
// or to create workbook
Jaxcel.generateExcelWorkbook(data, YourClass.class)Jaxcel.generateExcelFile(List<yourData>, "fileName", YourClass.class);
// or to create workbook
Jaxcel.generateExcelWorkbook(List<yourData>, YourClass.class)// ExcelModel annotation allows you to give a name for your excel sheet
// if not provided, it takes class name by default
@ExcelModel(name = "User Information")
data class User(
// ExcelColumn annotation allows you to give a name and width for your excel sheet
// if not provided, it takes field name by default
@field:ExcelColumn(name = "user id", width = 50) var id: Int,
val name: String,
val email: String,
)