需要在Person类上加一个注解来绑定 ()
@ConfigurationProperties(prefix = "person")效果: 加载指定的properties文件,使用 @PropertySource("classpath:apple.properties") 高级用法 两种方式对比 松散绑定
结论

需要在Person类上加一个注解来绑定 ()
@ConfigurationProperties(prefix = "person")效果: 加载指定的properties文件,使用 @PropertySource("classpath:apple.properties") 高级用法 两种方式对比 松散绑定
结论