Spring boot cannot find index.html under resoures folder
<p>folder structure:</p>

<p><a href="https://i.stack.imgur.com/uAzZV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uAzZV.png" alt="enter image description here"></a></p>

<p>I'm unable to reach test.html which is under resources/static folder:</p>

<pre><code>src-&gt; main-&gt; java-&gt; resources -&gt; static -&gt; test.html
</code></pre>

<p><a href="http://localhost:8080/test.html" rel="nofollow noreferrer">http://localhost:8080/test.html</a>   (not working)</p>

<p>but able to reach index.html under:</p>

<pre><code>src-&gt; main-&gt; java-&gt; webapp-&gt; index.html
</code></pre>

<p><a href="http://localhost:8080/index.html" rel="nofollow noreferrer">http://localhost:8080/index.html</a> (working)</p>

<p>from Spring Boot docs, it seems that I supposed to put all of my static content under /src/main/resources/static</p>

<p>extra info: <code>&lt;packaging&gt;war&lt;/packaging&gt;</code></p>

<p>WEB-INF inside the war file:</p>

<p><a href="https://i.stack.imgur.com/pkutb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pkutb.png" alt="enter image description here"></a></p>

<p>any idea why I'm not able to reach test.html?</p>