http://serverIp:8848/nacos/v1/cs/configs/listener
POST 请求体数据内容:
Listening-Configs=dataId^2group^2contentMD5^2tenant^1
enable-remote-sync-config 设置无效 有朋友遇到过么,因为单元测试原因,需要将enable-remote-sync-config 设置为false。
将此属性设置为false,但依旧为true,跟踪代码后发现NacosAutoConfiguration这个类中
@bean
@ConditionalOnMissingBean
public ConfigService nacosConfigService() throws NacosException {
Properties properties = createNacosProperties(environment, true);
return NacosFactory.createConfigService(properties);
}
createNacosProperties(environment, true);这行第二个参数强制给了true,并没有用yml配置中的false