apollo47

Results 3 comments of apollo47

2、当Excel没有标题行时,读不到第1行的数据(rows().map或dataRows().map()),建议标题行数由外部指定; 3、ExcelColumn注解增加required属性,当required=true时,如果这列出现空值,抛异常(参考第1点);

![image](https://user-images.githubusercontent.com/21029524/185064360-f4688369-10a8-4fcb-9b1b-e8c039ba086f.png)

filter可以解决标题行数大于1的情况。但当没有标题行时(第1行就是实际业务数据),无法处理。可能你觉得加个标题行就可以。但实现上,Excel可能是由另一系统产生的,这中间全自动的,没有人为干预过程。