title: Using Spring Boot without Maven
body: <p>I am trying to write a simple Java program that displays Hello World as a microservice. I am using Spring Boot, but due to security reasons at my company, I am unable to use Maven. Therefore, I have no option but to download the jar files and add them to my project. I have done so, and made sure I am using the latest jar versions. When I run my program, it shows no errors BUT Tomcat server is not starting and I do not see the "Hello World" message. Below is my code:</p>
  
  <pre><code>package com.tutorials;
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.ResponseBody;
  import org.springframework.web.bind.annotation.RestController;
  
  @RestController
  @EnableAutoConfiguration
  public class HelloWorld {
  
      @RequestMapping("/")
      //http://localhost:port/
  
      String hello()
      {
          return "Hello World!";
      }
  
      public static void main(String[] args) throws Exception{
  
          SpringApplication.run(HelloWorld.class,args);
          System.out.println("done");
  
  
      }
  
  
  
  }
  </code></pre>
  
  <p>and below is the output:</p>
  
  <pre><code>  .   ____          _            __ _ _
   /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
  ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
   \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
    '  |____| .__|_| |_|_| |_\__, | / / / /
   =========|_|==============|___/=/_/_/_/
   :: Spring Boot ::        (v2.2.2.RELEASE)
  
  2020-01-07 11:10:44.563  INFO 13224 --- [           main] com.tutorials.HelloWorld                 : Starting HelloWorld on HQTPM00184606D with PID 13224 (started by z.a in C:\Users\Z\Desktop\Workspace\HelloWorld_Microservice)
  2020-01-07 11:10:44.566  INFO 13224 --- [           main] com.tutorials.HelloWorld                 : No active profile set, falling back to default profiles: default
  2020-01-07 11:10:44.938  INFO 13224 --- [           main] com.tutorials.HelloWorld                 : Started HelloWorld in 0.703 seconds (JVM running for 1.096)
  done
  </code></pre>
  
  <p>and below is the jar files I am using:</p>
  
  <p><a href="https://i.stack.imgur.com/luG5x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/luG5x.png" alt="enter image description here"></a></p>
  
  <p>Why Tomcat is not starting and what dependencies I am missing here? Thanks.</p>