@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