| 123456789101112131415161718192021222324252627 |
- package com.zd.airbottle;
- import com.zd.common.core.mybatisplus.MybatisPlusGenerator;
- import java.net.URL;
- /**
- * <p>代码生成</p>
- *
- * @author: linft
- * @date: 2020/11/4
- * @since:
- */
- public class CodeGenerator {
- public static void main(String[] args) {
- //要生成的表名
- String[] tables = {"db_bottle_type"};
- //表前缀,若不想生成在实体里,添加前缀,如:sys_user, 前缀为:sys_
- String tablePrefix = "";
- URL url = CodeGenerator.class.getResource("");
- MybatisPlusGenerator.generator(tables,tablePrefix, url);
- }
- }
|