- Dubbo version: 3.0 branch
- Operating System version: all
- Java version: all
if (event.getChangeType().equals(ConfigChangeType.ADDED)) {
return;
}
Nacos 获取配置类型
private ConfigChangeType getChangeType(String configInfo, String oldValue) {
if (StringUtils.isBlank(configInfo)) {
return ConfigChangeType.DELETED;
}
if (StringUtils.isBlank(oldValue)) {
return ConfigChangeType.ADDED;
}
return ConfigChangeType.MODIFIED;
}