一、代码示例
public static void main(String[] args) {
Map<String, Object> valueMap = Maps.newHashMap();
valueMap.put("firstName", "你好");
valueMap.put("secondName", "他好");
valueMap.put("menuId", "123");
valueMap.put("templateId", UUIDLong.longUUID());
String pattern = "/collaboration/collaboration.do?method=newColl&from=bizconfig&firstName={firstName}&secondName={secondName}&menuId={menuId}&templateId={templateId}";
StrSubstitutor strSubstitutor = new StrSubstitutor(new MapStrLookup(valueMap), "{"