Skip to content

Commit

Permalink
修复代码生成在项目打包后模板未找到问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyouzhuguli committed Jun 17, 2019
1 parent 3de4d46 commit 27fdde8
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ private Template getTemplate(String templateName) throws Exception {
File file = new File(templatePath);
if (!file.exists()) {
templatePath = System.getProperties().getProperty("java.io.tmpdir");
System.out.println(templatePath);
file = new File(templatePath + "/" + templateName);
FileUtils.copyInputStreamToFile(Objects.requireNonNull(AddressUtil.class.getClassLoader().getResourceAsStream("classpath:generator/templates/" + templateName)), file);
}
Expand Down

0 comments on commit 27fdde8

Please sign in to comment.