spring boot热加载注解

spring boot热加载注解,支持方法层面,以及类层面。所遇场景修改了nacos配置文件,需要重启线上服务,碍事。

@RefreshScope
注意导包import org.springframework.cloud.context.config.annotation.RefreshScope;


posted @ 2020-09-29 14:04  *乐途*  阅读(280)  评论(0)    收藏  举报