Unable to render css and js files using Spark Java Template Engine
<p>I'm new to Spark Java framework and I'm trying to render my html file using Freemarker template engine. But I'm not able to render my css and js files.</p>

<p>My project structure is as follows:</p>

<pre><code>./pom.xml
./src/main/java/Spark.java
./src/main/resources/css/bootstrap.css
./src/main/resources/js/bootstrap.min.js
./src/main/resources/js/app.js
./src/main/resources/templates/search.ftl
</code></pre>

<p>The main method is as follows:</p>

<pre><code>public static void main(String[] args) {

        BasicConfigurator.configure();

        staticFileLocation("/css");
        staticFileLocation("/Content/Images");
        staticFileLocation("/fonts");
        staticFileLocation("/js");

        final Configuration configuration = new Configuration();
        configuration.setClassForTemplateLoading(Spark.class, "/");

        get("/searchview", (request, response) -&gt; {

            StringWriter writer = new StringWriter();

            try {
                Template searchTemplate = configuration.getTemplate("templates/search.ftl");

                searchTemplate.process(null, writer);
            } catch (Exception e) {
                halt(500);
            }

            return writer;
        });
}
</code></pre>

<p>And now when I enter url: localhost:4567/searchview, my HTML page gets rendered but the css and js is not.</p>

<p>In my console it says: INFO spark.http.matching.MatcherFilter - The requested route [/css/bootstrap.min.css] has not been mapped in Spark</p>

<p>What am I missing? </p>