注释类型 Configurable
@Target(TYPE) @Retention(RUNTIME) @Inherited @Documented public @interface Configurable
Marks a class as being eligible for Spring-driven configuration.Typically used with the AspectJ
AnnotationBeanConfigurerAspect
.- 从以下版本开始:
- 2.0
- 作者:
- Rod Johnson, Rob Harrop, Adrian Colyer, Ramnivas Laddad
可选元素概要
可选元素 修饰符和类型 可选元素 说明 Autowire
autowire
Are dependencies to be injected via autowiring?boolean
dependencyCheck
Is dependency checking to be performed for configured objects?boolean
preConstruction
Are dependencies to be injected prior to the construction of an object?String
value
The name of the bean definition that serves as the configuration template.
dependencyCheck
boolean dependencyCheck
Is dependency checking to be performed for configured objects?- 默认值:
- false
preConstruction
boolean preConstruction
Are dependencies to be injected prior to the construction of an object?- 默认值:
- false