BeanGeneratorDemo.java
public class BeanGeneratorDemo {
public BeanGeneratorDemo(){
}
public static void main(String[] args) throws IOException {
System.out.println("BeanGeneratorDemo begin");
String realPath="D:\\02 work\\project_learn\\BeanTool\\src\\";
/**
* 模板
*/
String[] templatePaths={
realPath+"org/zfc/template/Bean.txt",
realPath+"org/zfc/template/dataGrid.html"
};
/**
* 实体Excel
*/
String importBeanExcelPath=realPath+"org/zfc/bean/beans.xls";
/**
* 输出路径
*/
String outputBasePath="D:\\beans\\";
BeanGenerator beanGenerator=new BeanGenerator(templatePaths, importBeanExcelPath, outputBasePath);
beanGenerator.generate();
System.out.println("success,file:"+outputBasePath);
}
}