只是在某个业务逻辑中获取一下配置的某些值,使用@Value
@ConfigurationProperties与@Value区别
原文:https://www.cnblogs.com/qingmuchuanqi48/p/13193566.html