title: Why am I getting a 404 error when I go to localhost:8080/ using SpringBoot
body: <p>So I've set up a first time test application Using Spring-Boot, Kotlin, and Intellij.</p>
  
  <p>When I run the project everything seems to start up fine in the console.  But when I navigate to <code>http://localhost:8080/</code> in my browser  it gives me a 404 error and a page that looks like this:</p>
  
  <pre><code>Whitelabel Error Page
  This application has no explicit mapping for /error, so you are seeing this 
  as a fallback.
  
  Wed Aug 29 07:54:39 MDT 2018
  There was an unexpected error (type=Not Found, status=404).
  No message available
  </code></pre>
  
  <p>Why is it not navigating to the page I created?</p>
  
  <p>Main Class:</p>
  
  <pre><code>package com.daniel.anderson.demo
  import ... 
  
  
  @SpringBootApplication
  class DemoApplication
  
      fun main(args: Array&lt;String&gt;) {
          runApplication&lt;DemoApplication&gt;(*args)
      }
  </code></pre>
  
  <p>The Controller code:</p>
  
  <pre><code>package com.daniel.anderson.demo.controlers
  import ... 
  
  @Controller
  class HtmlController {
  
      @GetMapping("/")
      fun blog(model: Model) : String {
          model.addAttribute("title","Blog")
          return "blog"
      }    
  }
  </code></pre>
  
  <p>Mustach Files:
  blog.mustache</p>
  
  <pre><code>{{&gt; header}}
  
  &lt;h1&gt;{{title}}&lt;/h1&gt;
  &lt;p&gt;hello world&lt;/p&gt;
  
  {{&gt; footer}}
  </code></pre>
  
  <p>footer.mustache</p>
  
  <pre><code>&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>header.mustache</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;{{title}}&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  </code></pre>
  
  <p>Btw, I get the same error in postman. </p>