新建模版组myLive

在模版组下新建模版finit

在模版text内输入以下脚本
LOGGER.info("=$className$.$methodName$=>$parmas1$", $parmas2$);
try {
} catch (Exception e) {
LOGGER.error("=$className$.$methodName$=>error:", e);
}
LOGGER.info("=$className$.$methodName$=>$parmas1$, result={}", $parmas2$, JSON.toJSONString(result));
点击编辑脚本

parmas1脚本
groovyScript(" def result=''; def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList(); for(i = 0; i < params.size(); i++) { result+=''+params[i]+':{}'+ ((i < params.size() - 1) ? ', ' : '') }; return result", methodParameters())
parmas2脚本
groovyScript(" def result=''; def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList(); for(i = 0; i < params.size(); i++) { result+=params[i]+ ((i < params.size() - 1) ? ', ' : '') }; return result", methodParameters())