郑永安
2023-09-04 3c8f3a7b74f62a9053cd9d860d8f1d37454712eb
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);
    }
}