本帖最后由 forward 于 2013-8-26 21:18 编辑
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.TYPE})
public @interface CcyAnnotation {
String value() default "ccy";
int[] arrayAttr() default {1,2,5};
String[] arrayStr() {"1","2","abc"};//此处为什么老是显示错误???
}
|