导入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();
}
}
网友评论