title: spring boot & thymeleaf
body: <p>I use spring boot 1.5.6 release, and thymeleaf 3.0.0.release, thymeleaf-layout-dialect 2.0.0.</p>
  
  <p>I wrote a html file, like below.
  <a href="https://i.stack.imgur.com/y2okD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y2okD.jpg" alt="enter image description here"></a></p>
  
  <p>header_top and footer_bottom are another two html files, contents are:
  <a href="https://i.stack.imgur.com/cDukQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cDukQ.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/fxOXw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fxOXw.jpg" alt="enter image description here"></a></p>
  
  <p>and I have a controller, it is very simple: </p>
  
  <p><a href="https://i.stack.imgur.com/jkKq3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jkKq3.jpg" alt="enter image description here"></a></p>
  
  <p>The start application are as below: </p>
  
  <p><a href="https://i.stack.imgur.com/AIykj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AIykj.jpg" alt="enter image description here"></a></p>
  
  <pre><code>the applications.properties file cotains contents below: 
  spring.thymeleaf.mode=HTML5
  spring.thymeleaf.cache=false
  spring.session.store-type=none
  
  logging.level.root=INFO
  logging.level.org.springframework.web=DEBUG
  debug=true
  </code></pre>
  
  <p>When I run the app, I put <a href="http://localhost:8080" rel="nofollow noreferrer">http://localhost:8080</a> in the chrome address bar. What I got is hello world. So I guess the spring boot &amp; thymeleaf template resolver can find the index.html file. But the <code>header_top::catelog</code> and <code>footer_bottom::copy</code> are not parsed at all. I checked the source code of the page through the chrome dev tools. the <code>&lt;div th:insert...</code> are just as it is in the template files. So I guess the <code>th:*</code> are not parsed at all. I am new to spring boot and thymeleaf. I have googled for a long time, but still cannot find a solution. </p>
  
  <p>Please anyone help me.</p>
  
  <p>When request happens, the logs are as follows: </p>
  
  <p><code>2017-08-25 10:56:35.023 DEBUG 34177 --- [nio-8080-exec-3] o.s.b.w.f.OrderedRequestContextFilter    : Bound request context to thread: org.apache.catalina.connector.RequestFacade@6333b70f
  2017-08-25 10:56:35.024 DEBUG 34177 --- [nio-8080-exec-3] o.s.web.servlet.DispatcherServlet        : DispatcherServlet with name 'dispatcherServlet' processing GET request for [/]
  2017-08-25 10:56:35.024 DEBUG 34177 --- [nio-8080-exec-3] s.w.s.m.m.a.RequestMappingHandlerMapping : Looking up handler method for path /
  2017-08-25 10:56:35.024 DEBUG 34177 --- [nio-8080-exec-3] s.w.s.m.m.a.RequestMappingHandlerMapping : Returning handler method [public java.lang.String com.easylife.haozu.controller.IndexController.index(org.springframework.ui.Model)]
  2017-08-25 10:56:35.024 DEBUG 34177 --- [nio-8080-exec-3] o.s.web.servlet.DispatcherServlet        : Last-Modified value for [/] is: -1
  2017-08-25 10:56:35.024 DEBUG 34177 --- [nio-8080-exec-3] o.s.w.s.v.ContentNegotiatingViewResolver : Requested media types are [text/html, application/xhtml+xml, image/webp, image/apng, application/xml;q=0.9, */*;q=0.8] based on Accept header types and producible media types [*/*])
  2017-08-25 10:56:35.024 DEBUG 34177 --- [nio-8080-exec-3] o.s.w.servlet.view.BeanNameViewResolver  : No matching bean found for view name 'index'
  2017-08-25 10:56:35.025 DEBUG 34177 --- [nio-8080-exec-3] o.s.w.s.v.ContentNegotiatingViewResolver : Returning [org.thymeleaf.spring4.view.ThymeleafView@64c00234] based on requested media type 'text/html'
  2017-08-25 10:56:35.025 DEBUG 34177 --- [nio-8080-exec-3] o.s.web.servlet.DispatcherServlet        : Rendering view [org.thymeleaf.spring4.view.ThymeleafView@64c00234] in DispatcherServlet with name 'dispatcherServlet'
  2017-08-25 10:56:35.028 DEBUG 34177 --- [nio-8080-exec-3] o.s.web.servlet.DispatcherServlet        : Successfully completed request
  2017-08-25 10:56:35.028 DEBUG 34177 --- [nio-8080-exec-3] o.s.b.w.f.OrderedRequestContextFilter    : Cleared thread-bound request context: org.apache.catalina.connector.RequestFacade@6333b70f
  </code></p>