Error Running localhost in Spring Boot
<p>I am trying to run an application so I can test it locally but currently I am having issues.</p>

<p>I am using gradle and following this tutorial</p>

<p><a href="https://spring.io/guides/gs/serving-web-content/" rel="nofollow noreferrer">https://spring.io/guides/gs/serving-web-content/</a></p>

<p>However, I finish the tutorial and run this command :</p>

<pre><code>./gradlew bootRun
</code></pre>

<p>The application starts but I can't hit the end point.</p>

<p>It throws the following error:</p>

<pre><code>    Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri Dec 16 16:25:06 GMT 2016
There was an unexpected error (type=Not Found, status=404).
No message available
</code></pre>

<p>Any idea how to fix this?</p>

<pre><code> package conf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 */

@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
</code></pre>

<p>Greeting Class</p>

<pre><code>package controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 */

@Controller
public class GreetingController {

    @RequestMapping("/greeting")
    public String greeting(@RequestParam(value="name", required=false, defaultValue="World") String name, Model model) {
        model.addAttribute("name", name);
        return "greeting";
    }

}
</code></pre>

<p>Thanks</p>