标签:spro res ring source pid spring 继承 cal oca
1.nacos继承SpirngBoot做配置中心
spring配置文件里:nacos.config.server-addr=127.0.0.1:8848
springboot启动类中:
@NacosPropertySource(dataId = "cds-node", groupId = "com.wasu.node", autoRefreshed = true)
然后
@NacosValue(value = "${useLocalCache:true}", autoRefreshed = true)即可
标签:spro res ring source pid spring 继承 cal oca
原文地址:https://www.cnblogs.com/ramese666/p/14001575.html