title: Thymeleaf template engine swallowing exceptions
body: <p>I'm using thymeleaf 2.0.5 with spring 3 mvc configured as follows in webmvc-config.xml</p>
  
  <pre><code>&lt;bean id="templateResolver"
     class="org.thymeleaf.templateresolver.ServletContextTemplateResolver"
     p:prefix="/WEB-INF/templates/"
     p:suffix=".html"
     p:templateMode="HTML5" /&gt;
  
  &lt;bean id="templateEngine" 
     class="org.thymeleaf.spring3.SpringTemplateEngine"
     p:templateResolver-ref="templateResolver" /&gt;
  
  &lt;bean id="viewResolver" 
     class="org.thymeleaf.spring3.view.ThymeleafViewResolver"
     p:templateEngine-ref="templateEngine" /&gt;
  </code></pre>
  
  <p>The above configuration is working fine. The problem is that when an exception is thrown I see the following cryptic message in the logs:</p>
  
  <blockquote>
    <p>ERROR org.thymeleaf.TemplateEngine - [THYMELEAF][1] Exception processing template "dataAccessFailure": Error resolving template "dataAccessFailure", template might not exist or might not be accessible by any of the configured Template Resolvers</p>
  </blockquote>
  
  <p>Is there a way to configure the view resolver to exclude certain patterns? </p>
  
  <hr>
  
  <p>As per the accepted answer I changed the following bean config in webmvc-config.xml</p>
  
  <pre><code>&lt;bean id="viewResolver" 
        class="org.thymeleaf.spring3.view.ThymeleafViewResolver"
        p:templateEngine-ref="templateEngine"
        p:viewNames="index,questionnaires/*" /&gt;
  </code></pre>