1.美图
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/32d29e898b92e4e408c71cdc1d7abea1.png)
2.概述
@EnableConfigurationProperties
注解的作用是让使用@ConfigurationProperties
注解的类生效。你可以通过在@EnableConfigurationProperties
注解中直接简单的列出属性类来快捷的注册@ConfigurationProperties bean
的定义。而且@EnableConfigurationProperties
我们一般添加在Applicaiton
类上面。
3.源码
@Target(ElementType.TYPE) // 添加在类上的注解