Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法读取模板文件-"templates does not exist" #28

Open
Timzer opened this issue Mar 20, 2023 · 0 comments
Open

无法读取模板文件-"templates does not exist" #28

Timzer opened this issue Mar 20, 2023 · 0 comments

Comments

@Timzer
Copy link

Timzer commented Mar 20, 2023

image

正确解决方法:
cfg.setDirectoryForTemplateLoading(new File("src/main/resources/templates"));
修改为
cfg.setClasForTemplateLoading(this.getClass(),"templates");
建议新版本直接替换,可否?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant