From 0fd10935a1340151ace142e0dc6b9a286f0cdeac Mon Sep 17 00:00:00 2001
From: 郑永安 <zyazyz250@sina.com>
Date: 星期三, 23 八月 2023 15:57:58 +0800
Subject: [PATCH] 意见书模版

---
 src/main/java/com/gk/hotwork/Config/Cors/MyMvcConfigurer.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/gk/hotwork/Config/Cors/MyMvcConfigurer.java b/src/main/java/com/gk/hotwork/Config/Cors/MyMvcConfigurer.java
index e168a6c..784c898 100644
--- a/src/main/java/com/gk/hotwork/Config/Cors/MyMvcConfigurer.java
+++ b/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);
     }
 }

--
Gitblit v1.9.2