// 重写配置文件
try {
// 保存为备份文件
FileUtil.copy(file, new File(startXmlPath + ".back" + "_"
+ StringUtil.getNowTime("MMddHHmmss")));
XMLWriter writer = BeanXMLUtil.getBeanXMLWriter(file,ConfigBeanCreator.getConfigBean());
writer.setBeanName("eweb4j");
writer.setClass("eweb4j", ConfigBean.class);
writer.write();
String info = "configuration error, now it has repaired.";
error = StringUtil.getNowTime() + "EWeb4JConfig : " + info
+ "exception:" + StringUtil.getExceptionString(e);
log.error(info);