I'm very new to Spark. Will anyone please tell me how can I map external static resources? I am aware of the below method gotten from here :
public static synchronized void externalStaticFileLocation(String
externalFolder) {
if (initialized) {
throwBeforeRouteMappingException();
}
externalStaticFileFolder = externalFolder;
}
But I do not know how to use it. I called it before Routing like
externalStaticFileLocation("/resources/*");
I also tried
staticFileLocation("css/CrudTemp.css");
staticFileLocation("js/jquery.js");
staticFileLocation("js/jquery-ui.js");
Also tried
Spark.staticFileLocation("src/main/resources/css");
Spark.staticFileLocation("src/main/resources/js");