package annotation; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /* * èªå®ä¹ç注解类 * æ¹æ³ä¸è½æåæ° * ä¸è½æåºå¼å¸¸ * */ @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface MyAnnotationName { public String setName() default ""; public String fatherName() default ""; }