ITeye博客

BeanGenerator

flybird1985 · 2012-03-09 16:33 · java相关技术文档 · 编程语言 · Markdown

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);
	}
}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。