getPropertyValue

This commit is contained in:
redkale
2023-10-06 08:35:40 +08:00
parent 8954c63285
commit 001c51c8fe

View File

@@ -2112,7 +2112,7 @@ public final class Application {
if (newVal == null) {
throw new RedkaleException("Not found '" + key + "' value");
}
return getPropertyValue(val.substring(0, pos2) + newVal + val.substring(pos2 + 1), envs);
return getPropertyValue(val.substring(0, pos1) + newVal + val.substring(pos2 + 1), envs);
} else if ((pos1 >= 0 && pos2 < 0) || (pos1 < 0 && pos2 >= 0)) {
throw new RedkaleException(value + " is illegal naming");
}