首页 > TAG信息列表 > ConfigurationPropert

2.配置绑定

1.@ConfigurationProperties(prefix = "person") @ConfigurationProperties:告诉 SpringBoot 将本类中的所有属性和配置文件中相关的配置进行绑定; prefix = "person":配置文件中哪个下面的所有属性进行一一映射   2.@Value  @Value("${person.lastName}")   3.@Value 与 @Configu