郑永安
2023-08-23 99b2c395d535210baa69a245b5cb14f51a8606b3
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);
    }
}