然而,更简单的方法是为这些任务对象创建一个注解并提供@Component元注解。
However, an even simpler approach is to create an annotation for these task objects and provide the @Component meta-annotation.
使用注解(也称为特性),你甚至可以关联元数据与类和类的其他内容(操作、字段)。
Using annotations (also called attributes) you can even associate meta data to classes and some of their contents (operations, fields).
其默认的元数据源是注解,但开发者可以通过XML描述符对其进行扩展。
The default metadata source for validations is annotations, but the developers can extend the meta-data through the use of XML descriptors.
应用推荐