在开启devtools时 new Thread(() -> contextRefresher.refresh()).start() 不起作用 ContextRefresher 是用来刷新容器中标记了@RefreshScope Bean的类 解决方法: 热部署的范围配置 禁用热部署