摘要: Nacos实现配置的动态刷新,主要是靠客户端的长轮询去请求服务端获取更新的配置,在通过Spring的ApplicationContext.publishEvent() 发布事件的方式去刷新容器。 其实主要是靠Nacos—config包下的NacosContextRefresher、NacosConf 阅读全文
posted @ 2023-07-21 13:58 huigui_mint 阅读(789) 评论(0) 推荐(0)
摘要: 项目内部配置文件spring boot 启动会扫描一下位置application.properties或者application.yml 文件作为springboot的默认配置文件 1、file:./config/ 2、file:./ 3、classpath:/config/ 4、classpath 阅读全文
posted @ 2023-07-21 13:31 huigui_mint 阅读(169) 评论(0) 推荐(0)