Fix config length limitation. (#623)

This commit is contained in:
weixiang1862 2023-10-18 12:37:41 +08:00 committed by GitHub
parent 6c4af4e7d1
commit 017bc20908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ Release Notes.
* Optimize spring-cloud-gateway 2.1.x, 3.x witness class.
* Support report MongoDB instance info in Mongodb 4.x plugin.
* To compatible upper and lower case Oracle TNS url parse.
* Fix config length limitation.
#### Documentation

View File

@ -96,7 +96,7 @@ public class ConfigInitializer {
}
}
if (propertyValue.length() > lengthLimited) {
StringUtil.cut(propertyValue, lengthLimited);
propertyValue = StringUtil.cut(propertyValue, lengthLimited);
System.err.printf("The config value will be truncated , because the length max than %d : %s -> %s%n", lengthDefine.value(), configKey, propertyValue);
}
}