实战篇:设计自己的Annotation http://www.javaeye.com/topic/36659 定义自己的 Annotation 时需要设置@Target, @Retention 两个属性。