引言 之前创建完成项目之后使用了yml配置文件。并且使用了一个@ConfigurationProperties注解,这次博客主要说说关于@ConfigurationProperties和Spring的@Value注解的区别。 @ConfigurationProperties与@Value的区别 @Component @ConfigurationProperties(prefix = "person") public class Person{ private