You can use four predefined annotation types — referred to as meta-annotations — to annotate your annotations.
您可以使用4种预定义的注释类型(称为元注释)对您的注释进行注释。
However, an even simpler approach is to create an annotation for these task objects and provide the @Component meta-annotation.
然而,更简单的方法是为这些任务对象创建一个注解并提供@Component元注解。
The most obvious meta-annotation is one that allows you to indicate which program elements can have annotations of the defined type.
最明显的元注释就是允许何种程序元素具有定义的注释类型。
应用推荐