| | |
| | | |
| | | private static final String DRIVER_NAME = "com.mysql.cj.jdbc.Driver"; |
| | | |
| | | private static final String JDBC_URL = "jdbc:mysql://101.34.55.62:8066/secondary_recovery_order?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai"; |
| | | private static final String JDBC_URL = "jdbc:mysql://127.0.0.1:3306/intelligent_dispatching?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai"; |
| | | private static final String USER_NAME = "root"; |
| | | private static final String PASSWORD = "root2024jdhs"; |
| | | private static final String PASSWORD = "123456"; |
| | | |
| | | |
| | | // 防止误生成 |
| | |
| | | |
| | | // 全局配置 |
| | | GlobalConfig gc = new GlobalConfig(); |
| | | String projectPath = "F:\\workSpace\\laboratory\\generator"; |
| | | String projectPath = "F:\\workSpace\\intelligent_dispatching\\generator"; |
| | | gc.setOutputDir(projectPath + "/src/main/java") |
| | | .setAuthor("xiaochen") |
| | | .setMapperName("%sMapper") |
| | |
| | | // strategy.setTablePrefix(pc.getModuleName() + ""); |
| | | // strategy.setLikeTable(new LikeTable("room")); |
| | | //strategy.setLikeTable(new LikeTable("member")); |
| | | strategy.setLikeTable(new LikeTable("analysis_"));// 生成表名 |
| | | strategy.setLikeTable(new LikeTable("t_"));// 生成表名 |
| | | // strategy.setLikeTable(new LikeTable("t_hotel"));// 生成表名 |
| | | // strategy.setLikeTable(new LikeTable("t_scan_message"));// 生成表名 |
| | | // strategy.setNotLikeTable(new LikeTable("hotel_info"));// 不生成表名 |