protected Map<String, String> toMap(Properties properties) {
Map<String, String> result = Maps.newHashMap();
Enumeration<?> propertyNames = properties.propertyNames();
while (propertyNames.hasMoreElements()) {
String name = (String) propertyNames.nextElement();
String value = properties.getProperty(name);
result.put(name, value);
}
return result;
}
Convert properties to map in java
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326745279&siteId=291194637
Ranking