title: Thymeleaf Email Template and ConversionService
body: <p>I have a spring mvc application where I am trying to render a date LocalDate into a string, for normal views it works but for emails it doesn't work and throws the following error:</p>
  
  <blockquote>
    <p>Caused by:
    org.springframework.core.convert.ConverterNotFoundException: No
    converter found capable of converting from type [java.time.LocalDate]
    to type [java.lang.String]</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>import org.thymeleaf.context.Context;
  import org.thymeleaf.spring4.SpringTemplateEngine;
  
  @Service
  public class EmailService {
  
      @Autowired
      private SpringTemplateEngine templateEngine;
  
      public String prepareTemplate() {
          // ...
          Context context = new Context();
          this.templateEngine.process(template, context);
      }
  }
  </code></pre>