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() + "/"); } } } jh-server/src/main/resources/application.yaml
@@ -3,8 +3,8 @@ name: jh-server profiles: # active: prod active: stage active: prod # active: stage main: allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。