zf
2023-08-30 9ca0dc6e7833715b875cc9b6b91d5c497b2bae8b
src/main/java/com/gk/hotwork/Config/Cors/MyMvcConfigurer.java
@@ -32,7 +32,11 @@
    @Value("${emergencyPlanPath}")
    private String emergencyPlanPath;
    @Value("${file.path.dcPath}")
    private String dcPath;
    @Value("${file.path.urlRootPath}")
    private String urlRootPath;
    @Override
@@ -70,6 +74,7 @@
                .addResourceLocations("file:" + taskPath);
        registry.addResourceHandler("/upload/emergencyPlan/**")
                .addResourceLocations("file:" + emergencyPlanPath);
        registry.addResourceHandler("/uploadfile/**")
                .addResourceLocations("file:" + dcPath);
    }
}