Spring Boot not serving static javascript file
<p>I have a very strange behaviour of Spring Boot application (1.4.0.RELEASE)</p>

<p>My static content lies under <code>/src/main/resources/static/*</code> and one of the pages needs css and js files, but despite the fact that css files are served without problems I am getting 404 for js files:</p>

<p>For CSS file I see in the logs</p>

<pre><code>SimpleUrlHandlerMapping  : No handler mapping found for [/admin_files/custom_admin.css]
RequestMappingHandlerMapping : Looking up handler method for path /admin_files/custom_admin.css
RequestMappingHandlerMapping : Did not find handler method for [/admin_files/custom_admin.css]
SimpleUrlHandlerMapping: Matching patterns for request [/admin_files/custom_admin.css] are [/**]
SimpleUrlHandlerMapping  : Mapping [/admin_files/custom_admin.css] to HandlerExecutionChain with handler [ResourceHttpRequestHandler [locations=[ServletContext resource [/], (...)
</code></pre>

<p>so it looks completely fine. However for JS file it looks different:</p>

<pre><code>SimpleUrlHandlerMapping  : No handler mapping found for [/admin_files/vendor/jquery/dist/jquery.min.js]
RequestMappingHandlerMapping : Did not find handler method for [/admin_files/vendor/jquery/dist/jquery.min.js]
SimpleUrlHandlerMapping  : Matching patterns for request [/admin_files/vendor/jquery/dist/jquery.min.js] are [/**]
SimpleUrlHandlerMapping  : Mapping [/admin_files/vendor/jquery/dist/jquery.min.js] to HandlerExecutionChain with handler [ResourceHttpRequestHandler [locations=[ServletContext resource [/] (...)
//
// and now something strange starts to happen BELOW
//
HttpEntityMethodProcessor  : Written [{timestamp=Tue Sep 13 23:17:12 CEST 2016, status=404, error=Not Found, message=No message available, path=/admin_files/vendor/jquery/dist/jquery.min.js}] as "application/json" using [org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@29139aae]
</code></pre>

<p>I am really stuck as it looks like a very small glitch or something very tiny that I am missing somewhere.</p>

<p>My application looks like this:</p>

<pre><code>@SpringBootApplication
@EnableAsync
@EnableTransactionManagement(proxyTargetClass = true)
@EnableEncryptableProperties
public class Application extends WicketBootSecuredWebApplication { }
</code></pre>

<p>without any custom configuration beans, etc.</p>

<p><code>tree</code> executed in <code>/src/main/resources</code>:</p>

<pre><code>.
├── application-dev.yml
├── application-prod.yml
├── application-staging.yml
├── application.yml
├── banner.txt
└── static
    └── admin_files
        ├── custom_admin.css
        └── vendor
            ├── jquery
            │   ├── jquery.js
            │   └── jquery.min.js
            └── metisMenu
                ├── metisMenu.css
                ├── metisMenu.js
                ├── metisMenu.min.css
                └── metisMenu.min.js
</code></pre>

<p>Any help appreciated!</p>