若属性没有默认值,必须给注解赋值
@Target({ElementType.TYPE, ElementType.METHOD})@Retention(RetentionPolicy.RUNTIME)@Documentedpublic @interface EntryLog { String value() default ""; String[] codes();}// 需给注解赋值@EntryLog(codes = {"1001", "1002"})