示例如下:
public @interface CustomAnnot {
String[] author() default "me";
String description() default "";
}
用这个注解的时候这样用:
@CustomAnnot(author={"author1","author2"}, description="test")
参考资料:
1. https://stackoverflow.com/questions/20632940/how-to-set-string-array-in-java-annotation