| | |
| | | |
| | | public static void main(String[] args) { |
| | | String projectPath = System.getProperty("user.dir"); // 获取项目根路径 |
| | | String path = "ruoyi-common"; // 模块名称 |
| | | String table = "storage_attachment"; // 表名,多个表逗号隔开 |
| | | String path = "basic-server"; // 模块名称 |
| | | String table = "customer"; // 表名,多个表逗号隔开 |
| | | |
| | | // 代码输出路径配置 |
| | | String outputBasePath = Paths.get(projectPath, path, "src", "main", "java").toString(); |
| | |
| | | }) |
| | | .packageConfig(builder -> { |
| | | builder.parent(BASE_PACKAGE) // 基础包名 |
| | | .moduleName(MODULE_NAME) // 模块名 |
| | | .moduleName(MODULE_NAME) // 模块名(根据具体修改) |
| | | .entity("entity") // Entity包名 |
| | | .mapper("mapper") // Mapper包名 |
| | | .service("service") // Service包名 |