title: Live reload not working in Spring boot devtools
body: <p>I am using this dependency in a spring boot application:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;
      &lt;optional&gt;true&lt;/optional&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>The <a href="https://docs.spring.io/spring-boot/docs/2.0.0.RELEASE/reference/htmlsingle/#using-boot-devtools-restart-exclude" rel="noreferrer">documentation</a> says:</p>
  
  <blockquote>
    <p>By default, changing resources in /META-INF/maven,
    /META-INF/resources, /resources, <strong>/static</strong>, /public, or /templates does
    not trigger a restart but <strong>does trigger a live reload</strong>.</p>
  </blockquote>
  
  <p>The <a href="https://docs.spring.io/spring-boot/docs/2.0.0.RELEASE/reference/htmlsingle/#using-boot-devtools-livereload" rel="noreferrer">live reload documentation</a> says:</p>
  
  <blockquote>
    <p>The spring-boot-devtools module includes an embedded LiveReload server
    that can be used to trigger a browser refresh when a resource is
    changed. LiveReload browser extensions are freely available for
    Chrome, Firefox and Safari from livereload.com.</p>
  </blockquote>
  
  <p>Now, I am using Maven and my static folder is under src/main/resources, so my folder structure is:</p>
  
  <p>src/main/resources/static/index.html</p>
  
  <p>This is what's in my index.html file:</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Getting Started: Serving Web Content&lt;/title&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;p&gt;HI THERE! Get your greeting &lt;a href="/greeting"&gt;here&lt;/a&gt;&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I using chrome browser but am not using any live reload browser extension in chrome.</p>
  
  <p>I run the application with this Powershell command (since I'm using spring boot maven plugin):</p>
  
  <pre><code>mvn clean package; java -jar target\project-name-version.jar
  </code></pre>
  
  <p>This starts up the server on localhost:8080 and displays the contents of index.html in a web page.</p>
  
  <p>However, when I then make changes to index.html in Eclipse IDE and save the file, and I then refresh the browser page, <strong>I do not see the new changes.</strong></p>
  
  <p>How come live reload isn't working for me? What am I doing wrong?</p>