From 74af7e7e3ee39e25f73525391b13face373e350e Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期一, 23 三月 2026 16:45:25 +0800
Subject: [PATCH] 3.23
---
jyz-base-start/src/main/java/com/tievd/jyz/config/MyWebMvcConfig.java | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/jyz-base-start/src/main/java/com/tievd/jyz/config/MyWebMvcConfig.java b/jyz-base-start/src/main/java/com/tievd/jyz/config/MyWebMvcConfig.java
index b08d1cd..3a1a7c3 100644
--- a/jyz-base-start/src/main/java/com/tievd/jyz/config/MyWebMvcConfig.java
+++ b/jyz-base-start/src/main/java/com/tievd/jyz/config/MyWebMvcConfig.java
@@ -1,5 +1,6 @@
package com.tievd.jyz.config;
+import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
@@ -8,16 +9,23 @@
/**
* @author yang'zhi'shui
*/
+@Slf4j
@Configuration
public class MyWebMvcConfig implements WebMvcConfigurer {
@Value("${jeecg.path.upload:D:/usr/local/uploadFile}")
private String uploadFilePath;
+ @Value("${init.local.image-path}")
+ private String localImagePath;
+
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
+ log.info("閰嶇疆闈欐�佽祫婧愯矾寰�: {}", localImagePath);
registry.addResourceHandler("/sysLogo/**")
.addResourceLocations("file:" + uploadFilePath + "/sysLogo/");
+ registry.addResourceHandler("/images/**")
+ .addResourceLocations("file:" + localImagePath + "/");
}
}
--
Gitblit v1.8.0