@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface Bean
//注解在配置器的函数上| 限定符和类型 | 可选元素和说明 |
|---|---|
String |
destroyMethod
注销方法
|
int |
index
排序(产生之后的同类组件顺序)
|
String |
initMethod
初始化方法
|
boolean |
injected
要注入的
|
String |
name |
int |
priority
优先(产生之前的运行优先级;越大越优)
|
boolean |
registered
要注册的(能力接口)
|
String |
tag
标签,用于查找
|
boolean |
typed
要类型的(同时注册类型),仅当名称非空时有效
|
String |
value |
Copyright © 2024. All rights reserved.