How to read Freemarker Template files from src/main/resources folder?

The root of the classpath is src/main/resources, change the path to

configuration.setClassForTemplateLoading(this.getClass(), "/templates/");

Leave a Comment