@EnableConfigurationProperties
用来注册被@ConfigurationProperties
注解的类,成为上下文(context)中的bean
Enable support for ConfigurationProperties 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.
提供
ConfigurationProperties
注解的支持,@ConfigurationProperties
的beans可以通过标准方式被注册(比如通过被@Bean
注解的方法),或者,简单点就直接在此注解中明确指定
@ConfigurationProperties
的资料可见@ConfigurationProperties