注释类型 EnableConfigurationProperties
@Target(TYPE) @Retention(RUNTIME) @Documented @Import(org.springframework.boot.context.properties.EnableConfigurationPropertiesImportSelector.class) public @interface EnableConfigurationProperties
Enable support forConfigurationProperties
annotated beans.ConfigurationProperties
beans can be registered in the standard way (for example using@Bean
methods) or, for convenience, can be specified directly on this annotation.
可选元素概要
可选元素 修饰符和类型 可选元素 说明 Class<?>[]
value
Convenient way to quickly registerConfigurationProperties
annotated beans with Spring.
元素详细资料
value
Class<?>[] value
Convenient way to quickly registerConfigurationProperties
annotated beans with Spring. Standard Spring Beans will also be scanned regardless of this value.- 返回:
ConfigurationProperties
annotated beans to register
- 默认值:
- {}