title: How to read Freemarker Template files from src/main/resources folder?
body: <p>How to access my freemarker template (*.ftl) files stored within my src/main/resources folder from my code (Spring Boot application) ?</p>
  
  <p>I tried the following </p>
  
  <pre><code>freemarker.template.Configuration config = new Configuration();
  configuration.setClassForTemplateLoading(this.getClass(), "/resources/templates/");
  </code></pre>
  
  <p>and getting the following exception</p>
  
  <pre><code>freemarker.template.TemplateNotFoundException: Template not found for name "my-template.ftl".
  </code></pre>