|
@@ -410,9 +410,15 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
|
|
|
element.attr("placeholder", wbsFormElement.getEName());
|
|
|
}
|
|
|
}
|
|
|
- File writefile = new File(htmlurl);
|
|
|
- FileUtil.writeToFile(writefile, doc.html(), Boolean.parseBoolean("UTF-8"));
|
|
|
- inputStream.close();
|
|
|
+ try {
|
|
|
+ File writefile = new File(htmlurl);
|
|
|
+ FileUtil.writeToFile(writefile, doc.html(), Boolean.parseBoolean("UTF-8"));
|
|
|
+ }catch (Exception e){
|
|
|
+ System.out.println("修改html文件异常:"+ htmlurl);
|
|
|
+ }finally {
|
|
|
+ inputStream.close();
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|