-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple calls to staticFileLocation #568
Comments
this issue is important. |
+1
I can access files using links like
|
I'm looking to implement this for you but could you give me a bit more detail in what the goal is? |
I have multiple jars with resource folder and I had to do some reflection magic to search static resources in all jars. |
I'm late to the party eh? @drxaos Wouldn't be easier to just copy the files to the appropriate folder? Maven has a resource plug in that solves this https://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html @perwendel Could you shed some light on this? I personally don't think that any service should have more static resources, but I did notice that the StaticFilesConfiguration.java file has a Maybe I'm being naive, but it's not that hard to add this. |
I would prefer to have an array of Strings as the arguments of |
It seems you currently can't call staticFileLocation twice (I didn't look at the source code, but it looks like the second call is ignored?).
I'd like to be able to have a static assets folder, but also use webjars. However, something like this doesn't seem to work:
staticFileLocation("/public");
staticFileLocation("/META-INF/resources");
It looks like I can't access the files in "/META-INF/resources", but if I comment out the first line, then those files are successfully loaded.
The text was updated successfully, but these errors were encountered: