All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zengtengpeng.generator.AutoCodeTest Maven / Gradle / Ivy

There is a newer version: 2.1.6
Show newest version
package com.zengtengpeng.generator;

import com.zengtengpeng.generator.bean.StartCode;
import com.zengtengpeng.generator.utils.AutoCodeUtils;
import com.zengtengpeng.generator.utils.MyStringUtils;
import freemarker.template.Template;
import freemarker.template.TemplateException;
import org.mybatis.generator.api.MyBatisGenerator;
import org.mybatis.generator.config.Configuration;
import org.mybatis.generator.config.xml.ConfigurationParser;
import org.mybatis.generator.internal.DefaultShellCallback;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.util.*;


public class AutoCodeTest {
	public static void main(String[] args) {

		List dataNames= Arrays.asList("test_code");
		StartCode startCode=new StartCode();
		startCode.setJdbc("jdbc:mysql://localhost:3306/auto_code");
		startCode.setUser("root");
		startCode.setPassword("111111");
		startCode.setDataNames(dataNames);
		startCode.setParentPath("f:/core");
		startCode.setParentPack("com.etiaolong.newYear");
		AutoCodeUtils.startByWebAdmin(startCode);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy