BeanShell PostProcessor
FileWriter file = new FileWriter("E:\\IOT\\cui家庭中心\\v3.8.0\\123.txt",true);
BufferedWriter out = new BufferedWriter(file);
out.write(vars.get("localKey")+"\n");
log.info("===============到这里了吗");
out.close();
file.close();
JSR223 PostProcessor
JSR223 PostProcessor优点是如果出错了,log里给出的错误更加详细