title: How to serve static html content page in spring-boot
body: <p>I'm starting an embedded tomcat via <code>spring-boot</code> and want to serve a static <code>index.html</code> page as part of a running application.</p>
  
  <p>But the following does not work:</p>
  
  <pre><code>@SpringBootApplication
  public class HMyApplication {
      public static void main(String[] args) {
          SpringApplication.run(MyApplication.class, args);
      }
  }
  
  
  @RestController 
  public class HomeContoller {
      @RequestMapping("/")
      public String index() {
          return "index";
      }
  }
  
  src/main/resources/static/index.html
  </code></pre>
  
  <p>Result: when I call <code>localhost:8080</code>, I just see the word "index", but not my html page. Why?</p>