title: Intellij+Springboot+Thymeleaf+gradle - autoreload html resources
body: <p>I am using IntelliJ Ultimate, Spring Boot, and Thymeleaf.</p>
  
  <p>I want to enable auto-reload of HTML without restarting the server and without CTRL-F9.</p>
  
  <p>I have read the following already and I think it should be working, but it's not:</p>
  
  <ul>
  <li><p><a href="https://github.com/spring-projects/spring-boot/issues/34" rel="nofollow noreferrer">https://github.com/spring-projects/spring-boot/issues/34</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/33869606/intellij-15-springboot-devtools-livereload-not-working">IntelliJ 15, SpringBoot devtools livereload not working</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/34104664/livereload-for-assets-in-intellij-using-spring-boot/37769756#comment73860827_37769756">Livereload for assets in Intellij using Spring boot</a></p></li>
  </ul>
  
  <p>I have done the following steps:</p>
  
  <p><strong>build.gradle snippet</strong></p>
  
  <pre><code>compile group: 'org.springframework.boot', name: 'spring-boot-autoconfigure', version: '1.5.2.RELEASE'
  compile("org.springframework.boot:spring-boot-devtools")
  runtime('mysql:mysql-connector-java')
  testCompile('org.springframework.boot:spring-boot-starter-test')
  }
  
  bootRun {
      addResources = true
  }
  </code></pre>
  
  <p>IntelliJ Settings for Compilier:</p>
  
  <p><a href="https://i.stack.imgur.com/Lrh6l.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lrh6l.jpg" alt="Intellij Compilier"></a></p>
  
  <p>And Intellij Registry Setting:</p>
  
  <p><a href="https://i.stack.imgur.com/Sw98n.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sw98n.jpg" alt="Intelij Registry"></a></p>
  
  <p>My HTML is in <code>main\resources\templates</code> and my <code>application.properties</code> is in <code>\resources\</code></p>
  
  <p>I then have tried both running and debugging the project but either way, I still have to rebuild (CTRL-F9) between changes to the HTML.</p>
  
  <p>Reading <a href="https://github.com/spring-projects/spring-boot/issues/34" rel="nofollow noreferrer">here</a> from snicoll and dsayer this should be possible without the CTRL-F9:</p>