public final class PropertiesUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getRequiredValue(java.util.Properties properties,
java.lang.String key)
Get the value according to the key and verify whether the value exists.
|
public static java.lang.String getRequiredValue(java.util.Properties properties,
java.lang.String key)
IllegalArgumentException will be thrown.properties - The Propertieskey - key of propertiesjava.lang.IllegalArgumentException - throw an exception when the key does not exist