DTO代码自动生成器
2018-07-26 本文已影响39人
沧海一粟谦
导入jar包
配置dto.properties文件
dto.driverClass = com.mysql.jdbc.Driver
dto.jdbcUrl = jdbc:mysql://localhost:3306/spring
dto.user = root
dto.password = 123456
dto.package = bean
dto.mapper = mapper
dto.tablePrefix = t_
写个main方法生成代码
public class Test {
public static void main(String[] args) throws Exception {
DTOHelper dto = new DTOHelper();
dto.createDto();
}
}