title: HTTP status 404 - Not Found while creating springBoot Application
body: <p>This a springboot Application. It run perfectly but did not get output (it shows me HTTP Status 404 error in browser)</p>
  
  <p><strong>pom.xml</strong></p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.exaample.demo&lt;/groupId&gt;
    &lt;artifactId&gt;SpringBootMaven&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;Maven spring boot project&lt;/name&gt;
  
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;1.5.9.RELEASE&lt;/version&gt;
      &lt;/parent&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;properties&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;   
      &lt;/properties&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Springboot start Class
      <strong>Main Method</strong></p>
  
  <pre><code>package com.example.demo;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  
  @SpringBootApplication
  public class WebMainMethod {
  
      public static void main(String[] args) {
          SpringApplication.run(WebMainMethod.class, args);
  
      }
  
  }
  </code></pre>
  
  <p>controller is loading after main class</p>
  
  <pre><code>**Rest Controller**
  
  
  package com.example.demo.controller;
  
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RestController;
  
  @RestController
  public class HelloController {
  
      @RequestMapping("/hello")
      public String sayHi() {
          return "Hi";
      }
  }
  </code></pre>
  
  <p>Url :  <a href="http://localhost:8080/hello" rel="noreferrer">http://localhost:8080/hello</a>
  <strong>output</strong> </p>
  
  <p><img src="https://i.stack.imgur.com/oeaxq.png" alt="Browser Output"></p>
  
  <p><img src="https://i.stack.imgur.com/80iNr.png" alt="this console log os springboot Application"></p>