Examples of Use
@ResponseExcel(classFieldNames = {"name", "age", "address"})
@RequestMapping("/list")
public List list() {
return listUsers();
}
Among them, the use of ResponseExcel annotation and indicates the entity class fields, these fields will be easy to convert Excel file to download.
principle
GitHub:https://github.com/gaoice/easyexcel-spring-boot-starter
Welcome star.