Spring里@Component有一个value属性可以设置,MyComponent的value可以传给@Component吗?
@Component
value
MyComponent
@Documented @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE}) @Component() public @interface MyComponent { String value() default ""; }
This is more troublesome. It can be implemented through reflection.
Annotations don’t seem to support inheritance
This is more troublesome. It can be implemented through reflection.
Annotations don’t seem to support inheritance