在需要配置刷新的(类或方法)上 加上 @RefreshScope 扩展:spring cloud:config-server中@RefreshScope的"陷阱" 转载于:https://www.cnblogs.com/liaojie970/p/8872155.html