2021
07-22
07-22
Java使用poi做加自定义注解实现对象与Excel相互转换
引入依赖maven<dependency><groupId>org.apache.poi</groupId><artifactId>poi</artifactId><version>3.17</version></dependency>Gradleimplementationgroup:'org.apache.poi',name:'poi',version:'3.17'代码展示1、自定义注解类@Retention(value=RetentionPolicy.RUNTIME)@Target(value=ElementType.FIELD)public@interfaceExcel{Stringname();//列的名字intwidth()default6000;//列的宽度...
继续阅读 >