字符串替换
public static void main(String[] args) {
String string = "1${a}2${b}3${c}456";
Map<String, String> map = new HashMap<>();
map.put("a","AA");
map.put("b","BB");
map.put("c","CC");
StrSubstitutor strSubstitutor = new StrSubstitutor(map);
String replace = strSubstitutor.replace(string);
System.out.println(replace);
}