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); } }