title: Intellij spring boot app does not work from tomcat
body: <p>This is my class</p>
  
  <pre><code>package com.example;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
  import org.springframework.context.annotation.ComponentScan;
  import org.springframework.context.annotation.Configuration;
  import org.springframework.web.bind.annotation.PathVariable;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RestController;
  
  
  @Configuration
  @ComponentScan
  @EnableAutoConfiguration
  @SpringBootApplication
  public class TomcatIcınApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(TomcatIcınApplication.class, args);
      }
  }
  
  @RestController
  class GreetingController {
  
      @RequestMapping("/hello/hi")
      String hello( ) {
          return "Hello, xx!";
      }
  }
  </code></pre>
  
  <p>When i run application and open <code>localhost:8080/hello/hi</code>, i can see the output. But from <code>Edit Configurations</code>, when i add tomcat server on port <code>8081</code> as <code>localhost:8081/hello</code> and run tomcat this time, it invokes app and opens page but it is empty.</p>
  
  <p>Why can't i see my output?</p>