title: Spring boot application not up and run when start even using IDE(eclipse) or command prompt
body: <p>Just create a spring boot app in eclipse and try to run it , but it is not started properly as enough to handle a request . following shows the console 
  Tried all the solutions of other questions asked on same issue. but not worked.</p>
  
  <pre><code>  .   ____          _            __ _ _
   /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
  ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
   \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
    '  |____| .__|_| |_|_| |_\__, | / / / /
   =========|_|==============|___/=/_/_/_/
   :: Spring Boot ::        (v2.0.6.RELEASE)
  
  2018-10-22 14:12:42.929  INFO 5752 --- [           main] com.nevro.TrainingApiApp                 : Starting TrainingApiApp on DESKTOP-AUANCVF with PID 5752 (E:\MyStuff\Tutorials\spring-boot-training\target\classes started by acer in E:\MyStuff\Tutorials\spring-boot-training)
  2018-10-22 14:12:42.932  INFO 5752 --- [           main] com.nevro.TrainingApiApp                 : No active profile set, falling back to default profiles: default
  2018-10-22 14:12:43.004  INFO 5752 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@19d37183: startup date [Mon Oct 22 14:12:43 IST 2018]; root of context hierarchy
  2018-10-22 14:12:43.758  INFO 5752 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
  2018-10-22 14:12:43.770  INFO 5752 --- [           main] com.nevro.TrainingApiApp                 : Started TrainingApiApp in 1.137 seconds (JVM running for 1.725)
  2018-10-22 14:12:43.783  INFO 5752 --- [       Thread-2] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@19d37183: startup date [Mon Oct 22 14:12:43 IST 2018]; root of context hierarchy
  2018-10-22 14:12:43.785  INFO 5752 --- [       Thread-2] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown
  </code></pre>
  
  <p>It says application started but when try to brows it, nothing other than error in browser.</p>
  
  <p>default port for tomcat (8080) is unoccupied .</p>
  
  <p>Here is the pom.xml</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.nevro&lt;/groupId&gt;
      &lt;artifactId&gt;spring-training&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;spring-theory training&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;2.0.6.RELEASE&lt;/version&gt;
          &lt;relativePath /&gt; &lt;!-- lookup parent from repository --&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>Here is Main class with main method</p>
  
  <pre><code>package com.nevro;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  
  @SpringBootApplication
  public class TrainingApiApp {
      public static void main(String[] args) {
          SpringApplication.run(TrainingApiApp.class, args);
      }
  }
  </code></pre>
  
  <p>Have a one controller too as follows</p>
  
  <pre><code>package 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>Any reason for this and how to fix this issue. </p>