title: How to deploy a simple Spring Boot (with Gradle build system) to Apache Tomcat (real server, not embed server)?
body: <p>I follow this tutorial: <a href="http://spring.io/guides/gs/rest-service/" rel="noreferrer">http://spring.io/guides/gs/rest-service/</a> <br/>
  This is my project structure:
  <a href="https://i.stack.imgur.com/ZO3IP.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/ZO3IP.jpg" alt="enter image description here"></a>
  <br/><br/><strong><code>build.gradle</code></strong></p>
  
  <pre><code>buildscript{
      repositories{
          mavenCentral()
      }
      dependencies{
          classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.3.RELEASE")
      }
  }
  
  apply plugin: 'java'
  apply plugin: 'eclipse'
  apply plugin: 'idea'
  apply plugin: 'spring-boot'
  
  jar{
      baseName = 'gs-rest-service'
      version = '0.1.0'
  }
  
  repositories{
      mavenCentral()
  }
  
  sourceCompatibility = 1.8
  targetCompatibility = 1.8
  
  dependencies{
      compile("org.springframework.boot:spring-boot-starter-web") 
      testCompile("junit:junit")
  }
  task wrapper(type: Wrapper){
      gradleVersion = '2.3'
  }
  </code></pre>
  
  <p><br/><br/><strong><code>Application.java</code></strong></p>
  
  <pre><code>package hello;
  
  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><br/><br/><strong><code>Greeting.java</code></strong></p>
  
  <pre><code>package hello;
  
  public class Greeting {
  
      private final long id;
      private final String content;
  
      public Greeting(long id, String content) {
          super();
          this.id = id;
          this.content = content;
      }
  
      public long getId() {
          return id;
      }
  
      public String getContent() {
          return content;
      }
  
  }
  </code></pre>
  
  <p><br/><br/><strong><code>GreetingControler.java</code></strong></p>
  
  <pre><code>package hello;
  
  import java.util.concurrent.atomic.AtomicLong;
  
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestParam;
  import org.springframework.web.bind.annotation.RestController;
  
  @RestController
  public class GreetingController {
  
      private static final String template = "Hello, %s";
      private final AtomicLong counter = new AtomicLong();
  
      @RequestMapping("/greeting")
      public Greeting greeting(@RequestParam(value = "name", defaultValue = "World") String name) {
          return new Greeting(counter.incrementAndGet(), String.format(template, name));
      }
  
  }
  </code></pre>
  
  <p><br/><br/>I know how to run Spring Boot application by <strong><code>gradle bootRun</code></strong> command (run on Apache Tomcat embed server). But I don't know how to run above Spring Boot application on real Apache Tomcat (Please help me at this point!)</p>
  
  <p><a href="https://i.stack.imgur.com/nS966.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/nS966.jpg" alt="enter image description here"></a></p>