title: Springboot 2.0.2 not working with thymeleaf template, throwing 404 error
body: <p>I am using Springboot 1.5.7 for my rest api application, and I am using thymeleaf template to send emails from my api. But when I updated the version of spring boot to 2.0.2 its throwing 404 error i.e "Error resolving template "error", template might not exist or might not be accessible by any of the configured Template Resolvers".</p>
  
  <p>Below is the config I have in application.yml</p>
  
  <pre><code>spring:
    thymeleaf:
      cache: false
      enabled: true
      mode: HTML5
      prefix: /templates/
      suffix: .html   
  </code></pre>
  
  <p>thymeleaf version in pom.xml</p>
  
  <pre><code> &lt;dependency&gt;
        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
        &lt;artifactId&gt;spring-boot-starter-thymeleaf&lt;/artifactId&gt;
        &lt;version&gt;2.0.2.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Below is the template structure i am using,</p>
  
  <p><a href="https://i.stack.imgur.com/NCQRY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NCQRY.png" alt="enter image description here"></a></p>
  
  <p>My app release is very near and I am badly stuck with this problem, if someone can provide me workaround then it would be a great help.</p>