@ConfigurationProperties(prefix = “person” ):通过这个注解绑定
注解configurationProperties
@ConfigurationProperties(prefix = “person” )
通过注解加载配置文件@PropertySource(Value = “classpath:xxx.properties”),然后通过@Value(“${xxx}”)得到值

@ConfigurationProperties(prefix = “person” ):通过这个注解绑定
注解configurationProperties
@ConfigurationProperties(prefix = “person” )
通过注解加载配置文件@PropertySource(Value = “classpath:xxx.properties”),然后通过@Value(“${xxx}”)得到值