多层包自动.转为-
This commit is contained in:
parent
2a991721ab
commit
72a887ea61
|
@ -31,7 +31,7 @@ public class MybatisGeneratorConfigUtil {
|
|||
String jdbc_username,
|
||||
String jdbc_password,
|
||||
String module_prefix_name) {
|
||||
String module_path = PROJECT_NAME + "-" + module_prefix_name + "/" + PROJECT_NAME + "-" + module_prefix_name.replaceAll(".", "-") + "-dao/src/main/resources/generatorConfig.xml";
|
||||
String module_path = PROJECT_NAME + "-" + module_prefix_name.replaceAll("\\.", "-") + "/" + PROJECT_NAME + "-" + module_prefix_name.replaceAll("\\.", "-") + "-dao/src/main/resources/generatorConfig.xml";
|
||||
String sql = "SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = '" + DATABASE_NAME + "' AND table_name LIKE '" + module_prefix_name + "_%';";
|
||||
System.out.println("========== 开始生成代码 ==========");
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue