提交 657aa900 编写于 作者: shuzheng5201314's avatar shuzheng5201314

修复generatorConfig.xml生成密码错误问题

上级 ac0bb4ea
......@@ -62,7 +62,7 @@ public class MybatisGeneratorUtil {
context.put("generator_sqlMapGenerator_targetPackage", "com." + PROJECT_NAME + "." + module_prefix_name + ".dao.mapper");
context.put("generator_javaClientGenerator_targetPackage", "com." + PROJECT_NAME + "." + module_prefix_name + ".dao.mapper");
context.put("targetProject", targetProject);
context.put("master_jdbc_password", AESUtil.AESDecode(jdbc_password));
context.put("generator_jdbc_password", AESUtil.AESDecode(jdbc_password));
VelocityUtil.generate(VM_PATH, module_path, context);
// 删除旧代码
deleteDir(new File(targetProject + "/src/main/java/com/" + PROJECT_NAME + "/" + module_prefix_name.replaceAll("\\.", "/") + "/dao/model"));
......@@ -74,7 +74,6 @@ public class MybatisGeneratorUtil {
System.out.println("========== 开始运行MybatisGenerator ==========");
// 生成代码
try {
Thread.sleep(2000);
List<String> warnings = new ArrayList<>();
File configFile = new File(MybatisGeneratorUtil.class.getResource("/generatorConfig.xml").getFile());
ConfigurationParser cp = new ConfigurationParser(warnings);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册