mq兼容name=''

This commit is contained in:
redkale
2023-10-06 09:19:19 +08:00
parent 361e5a8500
commit d961a4283b

View File

@@ -534,6 +534,12 @@ public final class Application {
} }
mqnames.add(n.trim()); mqnames.add(n.trim());
} }
} else if (names != null && names.isEmpty()) {
String n = "";
if (mqnames.contains(n.trim())) {
throw new RedkaleException("mq.name(" + n.trim() + ") is repeat");
}
mqnames.add(n);
} }
try { try {
String classVal = getPropertyValue(mqConf.getValue("type", mqConf.getValue("value"))); //兼容value字段 String classVal = getPropertyValue(mqConf.getValue("type", mqConf.getValue("value"))); //兼容value字段