From 6db6ac0e83154a82e7dca84cf508098aca8aab4f Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期一, 07 九月 2026 15:59:36 +0800
Subject: [PATCH] 停止每天更新时段
---
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/WebConfig.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/WebConfig.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/WebConfig.java
index 2cf7ce7..c53159a 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/WebConfig.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/WebConfig.java
@@ -3,7 +3,6 @@
import cn.lihu.jh.module.infra.dal.dataobject.config.ConfigDO;
import cn.lihu.jh.module.infra.service.config.ConfigService;
import org.springframework.context.annotation.Configuration;
-import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@@ -20,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() + "/");
+ }
}
}
--
Gitblit v1.9.3