Spring boot cannot find index.html under webapp folder
<p>I read the following documentation from <a href="http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-spring-mvc-static-content" rel="noreferrer">spring.io</a> and it said <code>By default Spring Boot will serve static content from a directory called /static (or /public or /resources or /META-INF/resources) in the classpath</code> however when I put my index.html file under <code>/resources</code> the string <code>index</code> is just rendered. Currently <code>index.html</code> is under webapp and I am using AngularJS.</p>

<p><a href="https://i.stack.imgur.com/18nKn.png" rel="noreferrer"><img src="https://i.stack.imgur.com/18nKn.png" alt="directory"></a></p>

<p>MvcConfiguration</p>

<pre><code>@Configuration
public class MvcConfig {

    @Bean
    InternalResourceViewResolver viewResolver(){

        InternalResourceViewResolver resolver = new InternalResourceViewResolver();
        resolver.setPrefix("/webapp/");
        resolver.setSuffix(".html");

        return resolver;
    }

}
</code></pre>

<p>Restful Service for index page</p>

<pre><code>@RestController
public class IndexController {

    @RequestMapping("/")
    public String index(){
        System.out.println("Looking in the index controller.........");
        return "index";
    }

}
</code></pre>

<p>ON my IDE console I do see <code>Looking in the index controller......</code> printed from IndexController and under network in the Chrome development tools I only see <code>localhost 200</code>.</p>

<p>index.html</p>

<pre><code>&lt;body&gt;

  &lt;!--[if lt IE 7]&gt;
      &lt;p class="browsehappy"&gt;You are using an &lt;strong&gt;outdated&lt;/strong&gt; browser. Please &lt;a href="http://browsehappy.com/"&gt;upgrade your browser&lt;/a&gt; to improve your experience.&lt;/p&gt;
  &lt;![endif]--&gt;

  &lt;div ng-view&gt;&lt;/div&gt;

  &lt;div&gt;Angular seed app: v&lt;span app-version&gt;&lt;/span&gt;&lt;/div&gt;
</code></pre>