springcloud配置热加载刷新不生效

原因:类上面没有打上spring的注解
解决办法:@RefreshScope与@Component或@Service、@RestController必须一起注解到类上面,通过@Value获取值
posted @ 2022-06-16 15:29  亲爱滴hh  阅读(970)  评论(0)    收藏  举报