public static String shuffle(Properties props){
TreeMap<String, String> propMap = new TreeMap<>();
props.entrySet().stream().forEach(objectObjectEntry -> {
propMap.put(objectObjectEntry.getKey().toString(), null == objectObjectEntry.getValue()? "" : objectObjectEntry.getValue().toString());
});
return propMap.toString();
}
map排序