#2142·easyexcel

实体继承父类,导出时父类字段的顺序问题

Author: shallwetalkgeCreated Oct 21, 2021Updated Aug 26, 2025
Labelssuggestpending verification

原因 多个实体继承同一个父类,在导出时候父类字段顺序需要根据前端展示结果,无法指定特定的order 建议描述

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface ExcelProperty {}

该注解是否可以兼容注解方法,重写父类属性的getter时候可以添加注解覆盖父类属性的配置同时可以按子类要求的顺序导出