@EnableConfigurationProperties
Jump to navigation
Jump to search
Internal
Overview
Can be used to register classes that are not components, yet still want to take advantage of @ConfigurationProperties mechanism. If a regular component is annotated with @ConfigurationProperties, it does not need help from @EnableConfigurationProperties.
Example
@EnableConfigurationProperties(MyConfig.class)
@ConfigurationProperties(prefix = "com.example.my.config")
public class MyConfig {
...
}