mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-27 14:49:23 +00:00
fix for #3907 resource override
This commit is contained in:
parent
e0746b468e
commit
d0ce949219
@ -26,8 +26,6 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
|||||||
registry.addResourceHandler("/**")
|
registry.addResourceHandler("/**")
|
||||||
.addResourceLocations(
|
.addResourceLocations(
|
||||||
"file:" + InstallationPathConfig.getStaticPath(), "classpath:/static/");
|
"file:" + InstallationPathConfig.getStaticPath(), "classpath:/static/");
|
||||||
registry.addResourceHandler("/js/**").addResourceLocations("classpath:/static/js/");
|
|
||||||
registry.addResourceHandler("/css/**").addResourceLocations("classpath:/static/css/");
|
|
||||||
// .setCachePeriod(0); // Optional: disable caching
|
// .setCachePeriod(0); // Optional: disable caching
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user