title: First steps with freemarker with spring mvc
body: <p>So I have Index action in my HomeController.java class.</p>
  
  <p>I have my freemarker templates in:</p>
  
  <pre><code>/web-inf/ftl/test.ftl
  </code></pre>
  
  <p>How can I load the template?</p>
  
  <p>I have this in my appname-servlet.xml:</p>
  
  <pre><code> &lt;bean id="viewResolver"
            class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver"&gt;
          &lt;property name="suffix"&gt;
              &lt;value&gt;.ftl&lt;/value&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
      &lt;bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer"&gt;
          &lt;property name="templateLoaderPath" value="/WEB-INF/freemarker/"/&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p><strong>What should my action code look like for HomeController index action?</strong></p>
  
  <p>I have /web-inf/freemarker/index.ftl </p>