提交 778f2454 编写于 作者: 黄勇

【I】代码优化

上级 83831215
Smart Framework
\ No newline at end of file
Smart Generator
使用方法
1. 修改 db.xls,填写表结构文档。
2. 修改 config.properties,指定输出路径与包名。
3. 运行 Generator 类的 main() 方法。
\ No newline at end of file
package com.smart.generator;
import com.smart.framework.util.ClassUtil;
import com.smart.framework.util.FileUtil;
import com.smart.framework.util.StringUtil;
import com.smart.generator.bean.Column;
......@@ -62,7 +63,7 @@ public class Generator {
}
public void generator() {
String inputPath = config.getProperty("input_path");
String inputPath = ClassUtil.getClassPath() + "db.xls";
String outputPath = config.getProperty("output_path");
String packageName = config.getProperty("package_name");
......
input_path = D:/Workspace/smart/smart-generator/db.xls
output_path = D:/Workspace/smart/smart-generator/gen
package_name = com.smart.sample.entity
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册