加载yml配置文件中参数并初始化bean的两种方式
参考https://www.jb51.net/article/171639.htm
方式1:@Component+@Value
方式2:@Component+@ConfigurationProperties

加载yml配置文件中参数并初始化bean的两种方式
参考https://www.jb51.net/article/171639.htm
方式1:@Component+@Value
方式2:@Component+@ConfigurationProperties