Home > Q&A > body text
Spring里@Component有一个value属性可以设置,MyComponent的value可以传给@Component吗?
@Component
value
MyComponent
@Documented @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE}) @Component() public @interface MyComponent { String value() default ""; }
PHP中文网2017-04-18 10:49:16
This is more troublesome. It can be implemented through reflection.
PHPz2017-04-18 10:49:16
Annotations don’t seem to support inheritance
Home
Course
Q&A
My