protected void generateFile(Configuration config, Table table, List<File> templateFiles) {
		try {
			System.out.println("#############-------------开始生成代码-----------#############");
			for (File templateFile : templateFiles) {
				String templateRelativePath = templateFile.getName();
				if (templateFile.isDirectory() || templateFile.isHidden())
					continue;
				if (templateRelativePath.equals(""))
					continue;
				Template template = config.getTemplate(templateRelativePath);
				Map<String, Object> templateModelData = TemplateModelUtil.getTemplateModelMap(table);
				File targetFile = getTargetFile(templateModelData, templateRelativePath);
				String result = FreeMarkerUtil.renderTemplate(template, templateModelData);
				if (!StringUtil.isNullOrEmpty(targetFile)) {
					if (templateRelativePath.endsWith(".properties")) {
						FileUtil.writeStringToFile(targetFile, result, true);
					} else {
						FileUtil.writeStringToFile(targetFile, result, false);
					}
					System.out.println("#############---模板文件---> " + templateRelativePath + " ----生成----> " + targetFile.getName());
				}
			}
			System.out.println("#############-------------代码生成结束-----------#############");

		} catch (IOException e) {
			e.printStackTrace();
		}
	}