|
|
@ -91,6 +91,21 @@ public class BeforeCheckConfiguration {
|
|
|
|
"Please check whether the [spring.dynamic.thread-pool.nacos.data-id] configuration is empty or an empty string.");
|
|
|
|
"Please check whether the [spring.dynamic.thread-pool.nacos.data-id] configuration is empty or an empty string.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, String> etcd = properties.getEtcd();
|
|
|
|
|
|
|
|
if (MapUtil.isNotEmpty(etcd)){
|
|
|
|
|
|
|
|
String endpoints = etcd.get("endpoints");
|
|
|
|
|
|
|
|
if ((StringUtil.isBlank(endpoints))){
|
|
|
|
|
|
|
|
throw new ConfigEmptyException(
|
|
|
|
|
|
|
|
"Web server failed to start. The dynamic thread pool etcd endpoints is empty.",
|
|
|
|
|
|
|
|
"Please check whether the [spring.dynamic.thread-pool.etcd.endpoints] configuration is empty or an empty string.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
String key = etcd.get("key");
|
|
|
|
|
|
|
|
if ((StringUtil.isBlank(key))){
|
|
|
|
|
|
|
|
throw new ConfigEmptyException(
|
|
|
|
|
|
|
|
"Web server failed to start. The dynamic thread pool etcd key is empty.",
|
|
|
|
|
|
|
|
"Please check whether the [spring.dynamic.thread-pool.etcd.key] configuration is empty or an empty string.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|