Skip to content

Commit

Permalink
修改获取database.html文件位置
Browse files Browse the repository at this point in the history
  • Loading branch information
liangchen3 committed Mar 5, 2020
1 parent 578db8c commit 9800ab4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class WordGenerator {
configuration = new Configuration();
configuration.setDefaultEncoding("utf-8");
try {
configuration.setDirectoryForTemplateLoading(new File("./"));
configuration.setDirectoryForTemplateLoading(new File(WordGenerator.class.getResource("/").getFile()));
} catch (IOException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 9800ab4

Please sign in to comment.