zhangfeng
2023-07-26 dd59c95e87ba585c4e3e2f059e218853784402e5
src/main/java/com/gk/hotwork/Config/Cors/MyMvcConfigurer.java
@@ -1,5 +1,6 @@
package com.gk.hotwork.Config.Cors;
import com.gk.hotwork.Config.attachment.FilePathConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
@@ -30,6 +31,8 @@
    private String taskPath;
    @Value("${emergencyPlanPath}")
    private String emergencyPlanPath;
    @Override
@@ -67,5 +70,6 @@
                .addResourceLocations("file:" + taskPath);
        registry.addResourceHandler("/upload/emergencyPlan/**")
                .addResourceLocations("file:" + emergencyPlanPath);
    }
}