The root of the classpath is src/main/resources
, change the path to
configuration.setClassForTemplateLoading(this.getClass(), "/templates/");
The root of the classpath is src/main/resources
, change the path to
configuration.setClassForTemplateLoading(this.getClass(), "/templates/");