| | |
| | | |
| | | public static void main(String[] args) { |
| | | // 数据库连接url |
| | | String dbUrl = "jdbc:mysql://localhost:3306/secondary_recovery"; |
| | | String dbUrl = "jdbc:mysql://localhost:3306/secondary_recovery_order"; |
| | | // 数据库用户名 |
| | | String dbUsername = "root"; |
| | | // 数据库密码 |
| | |
| | | // 实体类中时间策略 |
| | | .dateType(DateType.ONLY_DATE) |
| | | // 生成日期 |
| | | .commentDate("yyyy-MM-dd") |
| | | .commentDate("yyyy-MM-dd HH:mm") |
| | | ) |
| | | |
| | | // 包配置 |
| | | .packageConfig(builder -> builder |
| | | // 父包名 |
| | | .parent("com.ruoyi.user") |
| | | .parent("com.ruoyi.order") |
| | | // 父包模块名 注释即为无 |
| | | // .moduleName(scanner("模块名")) |
| | | // Entity 包名 |