title: Thymeleaf doesn't show values
body: <p>I'm writing a little web-application using Spring-Boot &amp; Thymeleaf, but the values pass from controller to html page doesn't appear.</p>
  
  <p>I don't known why, but it doesn't work.</p>
  
  <p><strong>pom.xml</strong></p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;2.0.1.RELEASE&lt;/version&gt;
      &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
  &lt;/parent&gt;
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;!--    thymeleaf   --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-thymeleaf&lt;/artifactId&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p><strong>Configuration</strong></p>
  
  <pre><code>@Configuration
  public class ThymeleafConfig {
  
      @Bean
      public SpringResourceTemplateResolver templateResolver() {
          SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver();
          templateResolver.setCacheable(false);
          templateResolver.setPrefix("/");
          templateResolver.setSuffix(".html");
          templateResolver.setCacheable(false);
          return templateResolver;
      }
  
      @Bean
      public SpringTemplateEngine templateEngine() {
          SpringTemplateEngine springTemplateEngine = new SpringTemplateEngine();
          springTemplateEngine.addTemplateResolver(templateResolver());
          return springTemplateEngine;
      }
  
      @Bean
      public ThymeleafViewResolver viewResolver() {
          ThymeleafViewResolver viewResolver = new ThymeleafViewResolver();
          viewResolver.setTemplateEngine(templateEngine());
          viewResolver.setOrder(1);
          viewResolver.setViewNames(new String[] {".html", ".xhtml"});
          return viewResolver;
      }
  </code></pre>
  
  <p>This is the 
  <strong>controller</strong></p>
  
  <pre><code>@Controller
  @RequestMapping("/dyn")
  public class DynamicWebPage {
  
     @RequestMapping(value = "/third", method = RequestMethod.GET)
     public ModelAndView fileDinamicoTerzo() {
          Map&lt;String, Object&gt; model = new HashMap&lt;&gt;();
          model.put("messagge", "ciao");
          ModelAndView mav = new ModelAndView();
          mav.addAllObjects(model);
          mav.setViewName("forward:provadin.html");
          return mav;
      }
  }
  </code></pre>
  
  <p>this is the html file, here i should see the value of data i passed through...
  <strong>html template</strong></p>
  
  <pre><code>&lt;div th:text="${message}"&gt;${message}&lt;/div&gt;
  &lt;div th:utext="${message}"&gt;${message}&lt;/div&gt;
  &lt;div th:value="${message}"&gt;${message}&lt;/div&gt;
  &lt;div data-th-text="${message}"&gt;&lt;/div&gt;
  &lt;div th:inline="text"&gt;[[${message}]]&lt;/div&gt;
  &lt;div th:inline="text"&gt;[[${model.message}]]&lt;/div&gt;
  </code></pre>
  
  <p>and this is the <strong>result</strong></p>
  
  <pre><code>${message}
  ${message}
  ${message}
  
  [[${model.messagge}]]
  [["${model.messagge}"]]
  </code></pre>
  
  <p>Is there some one could say me how fix this problem?</p>
  
  <p><em>I'm sorry for my english</em></p>