From 0fa1f4767affcd1879709ebea630016356836c75 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期五, 18 九月 2026 15:07:20 +0800
Subject: [PATCH] Merge branch 'master' of http://116.62.18.175:6699/r/~yxh/ecg
---
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/WebConfig.java | 5 +++--
1 files changed, 3 insertions(+), 2 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 3f85867..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
@@ -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() + "/");
+ }
}
}
--
Gitblit v1.9.3