@RefreshScope 的作用让在application.properties里自定义的变量也能通过@Value 注解正常注入转载于:https://www.cnblogs.com/dongma/p/10040887.html