提交 6d8b8a9c 编写于 作者: shuzheng5201314's avatar shuzheng5201314

generator配置文件解密

上级 33d30003
......@@ -10,7 +10,7 @@ import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
public class EncryptPropertyPlaceholderConfigurer extends PropertyPlaceholderConfigurer {
private String[] propertyNames = {
"master.jdbc.password", "slave.jdbc.password", "master.redis.password"
"master.jdbc.password", "slave.jdbc.password", "generator.jdbc.password", "master.redis.password"
};
/**
......
......@@ -74,6 +74,7 @@ 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.
先完成此消息的编辑!
想要评论请 注册