title: Unable to run localhost in Spring Boot application (Tomcat server)
body: <p>I've been learning Spring using the following tutorials: <a href="https://www.youtube.com/playlist?list=PLqq-6Pq4lTTbx8p2oCgcAQGQyqN8XeA1x" rel="nofollow noreferrer">https://www.youtube.com/playlist?list=PLqq-6Pq4lTTbx8p2oCgcAQGQyqN8XeA1x</a> </p>
  
  <p>I have created a Maven project and tried to run the Spring Boot application while referring to these videos:</p>
  
  <p><a href="https://www.youtube.com/watch?v=E7_a-kB46LU&amp;index=9&amp;list=PLqq-6Pq4lTTbx8p2oCgcAQGQyqN8XeA1x" rel="nofollow noreferrer">https://www.youtube.com/watch?v=E7_a-kB46LU&amp;index=9&amp;list=PLqq-6Pq4lTTbx8p2oCgcAQGQyqN8XeA1x</a></p>
  
  <p>I tried to run my Spring application on Tomcat server but the localhost isn't working. (Port 8080)</p>
  
  <p>My pom.xml looks like this:</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;io.javabrains.springbootquickstart&lt;/groupId&gt;
    &lt;artifactId&gt;course-api-new&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;Java Brains Course API&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.4.2.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>CourseApiApp.java :</p>
  
  <pre><code>package io.javabrains.springbootstarter;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  
  @SpringBootApplication
  public class CourseApiApp {
  
      public static void main(String[] args) {
          SpringApplication.run(CourseApiApp.class, args);
  
      }
  
  }
  </code></pre>
  
  <p>According to the video localhost should display Whitelist error on running the application, but it doesn't run at all.</p>
  
  <p>Any help would be appreciated, thanks!</p>