Spring Boot中,下列关于@ConfigurationProperties注解的说法中,正确的是
@ConfigurationProperties注解只能作用于类
使用@ConfigurationProperties注解为Bean注入属性时,必须为Bean设置 setter方法
@ConfigurationProperties注解必须和@Component结合使用
要想使@ConfigurationProperties注解注入的属性生效,必须使用@EnableConfigurationProperties注解开启注入