title: Spring boot not showing index.html
body: <p>I have this in <code>com.tuke.doto.Controllers / RootController.java</code>:</p>
  
  <pre><code>package com.tuke.doto.Controllers;
  
  import org.springframework.stereotype.Controller;
  import org.springframework.web.bind.annotation.RequestMapping;
  
  @Controller
  public class RootController {
  
      @RequestMapping("/")
      public String root() {
          return "frontpage";
      }
  }
  </code></pre>
  
  <p>and I have <code>frontpage.html</code> in <code>main/resources/static</code> (I also tried to move it into <code>main/resources/templates</code></p>
  
  <p>When I do request on <code>localhost:8080</code> I see this:</p>
  
  <pre><code>HTTP Status [404] – [Not Found]
  
  Type Status Report
  
  Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
  
  Apache Tomcat/8.5.15
  </code></pre>
  
  <p>and in my console on jetbrains intellij I see this:</p>
  
  <pre><code>javax.servlet.ServletException: Circular view path [error]: would dispatch back to the current handler URL [/error] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
  </code></pre>
  
  <p>I've also included <code>server.error.whitelabel.enabled=false</code> into <code>main/resources/application.properties</code></p>
  
  <p>Where is the problem? Isn't that the simplest example so why it doesn't work?</p>
  
  <p><strong>EDIT</strong> maybe I should install some dependency to make it work...
  this is how my build.gradle looks right now:</p>
  
  <pre><code>dependencies {
      compile('org.springframework.boot:spring-boot-starter-web')
      compile('org.springframework.boot:spring-boot-starter-websocket')
  
      compile("org.springframework.boot:spring-boot-devtools")
  
      testCompile('org.springframework.boot:spring-boot-starter-test')
  }
  </code></pre>