@Component @MateAnnotation @Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface MethodSourceBean
注解类表明该类中存在可直接作为容器的数据源的方法,
允许直接在methods()中声明或者通过在方法上添加MethodSourceBean.Method注解的方式声明作为数据源的方法。
该注解以Component作为元注解,因此该注解标记的类将会默认注册到spring容器中
MethodSourceContainer| 限定符和类型 | 可选元素和说明 |
|---|---|
MethodSourceBean.Method[] |
methods
容器方法
|
MethodSourceBean.Method[] |
value
容器方法
|
@AliasFor(value="methods") public abstract MethodSourceBean.Method[] value
@AliasFor(value="value") public abstract MethodSourceBean.Method[] methods
Copyright © 2022. All rights reserved.