| | |
| | | |
| | | public static void main(String[] args) { |
| | | // 数据库连接url |
| | | String dbUrl = "jdbc:mysql://localhost:3306/old_data"; |
| | | String dbUrl = "jdbc:mysql://localhost:3306/secondary_recovery"; |
| | | // 数据库用户名 |
| | | String dbUsername = "root"; |
| | | // 数据库密码 |
| | |
| | | // 包配置 |
| | | .packageConfig(builder -> builder |
| | | // 父包名 |
| | | .parent("com.rouyi.user") |
| | | .parent("com.ruoyi.user") |
| | | // 父包模块名 注释即为无 |
| | | // .moduleName(scanner("模块名")) |
| | | // Entity 包名 |
| | |
| | | // 开启跳过视图 |
| | | // .enableSkipView() |
| | | // 增加过滤表前缀 |
| | | .addTablePrefix("ot_", "b_", "iot_", "t_") |
| | | .addTablePrefix("ot_", "b_", "iot_", "t_", "sys_") |
| | | // 增加过滤表后缀 |
| | | .addTableSuffix("_n") |
| | | // 增加过滤字段前缀 |