liusheng
8 天以前 9104573730e4d34625cd4a671cc42ded9ebb37af
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/WebConfig.java
@@ -19,7 +19,8 @@
        ConfigDO configByKey = configService.getConfigByKey("file.upload.path");
        // 配置 /profile/** 映射到文件系统路径
        registry.addResourceHandler("/profile/**").addResourceLocations("file:" + configByKey.getValue() + "/");
        if (configByKey != null) {
            registry.addResourceHandler("/profile/**").addResourceLocations("file:" + configByKey.getValue() + "/");
        }
    }
}