产品提出需要增加文本超出长度时,不换行,开始在@Excel增加了isWrap = false实现,
可是对表头却没有效果,以及默认横向对齐方式为居中等样式需要实现,查看Excel注解中并没有对应修改的属性。
@Excel(name = "So", width = 15)
private String so;
@Excel(name = "Warehouse", width = 11)
private String warehouse;
@Excel(name = "Location")
private String location;
@Excel(name = "Description", width = 24)
private String description;
@Excel(name = "Status", width = 15)
private String reverseStatus;
部分属性
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface Excel {
String databaseFormat() default "yyyyMMddHHmmss";
String exportFormat() default "";
String importFormat() default "";
String format() default "";
以及导出实现类
Workbo