Fix config length limitation. (#623)
This commit is contained in:
parent
6c4af4e7d1
commit
017bc20908
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue