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