From 089d6d807224a89510f94147a41ea1185057c678 Mon Sep 17 00:00:00 2001
From: 李林 <z1292839451@163.com>
Date: 星期日, 07 四月 2024 16:54:22 +0800
Subject: [PATCH] 实现样品管理的功能,包含新增货架、修改货架、删除货架、查看单元格及样品存放地址、点击样品查看样品详细信息、新增样品编号搜索样品详细信息
---
framework/src/main/java/com/yuanchu/mom/config/OpenFifer.java | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/framework/src/main/java/com/yuanchu/mom/config/OpenFifer.java b/framework/src/main/java/com/yuanchu/mom/config/OpenFifer.java
index 8b3fd91..329eeed 100644
--- a/framework/src/main/java/com/yuanchu/mom/config/OpenFifer.java
+++ b/framework/src/main/java/com/yuanchu/mom/config/OpenFifer.java
@@ -1,6 +1,6 @@
package com.yuanchu.mom.config;
-import org.springframework.beans.factory.annotation.Autowired;
+import cn.hutool.log.Log;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
@@ -18,13 +18,17 @@
@Resource
private PowerConfig powerConfig;
+ @Resource
+ private LogConfig logConfig;
+
@Value("${file.path}")
private String filePath;
@Value("${outPath}")
private String outPath;
-
+ @Value("${wordUrl}")
+ private String wordUrl;
public void addResourceHandlers(ResourceHandlerRegistry registry) {
//閰嶇疆鎷︽埅鍣ㄨ闂潤鎬佽祫婧�
@@ -35,12 +39,14 @@
//璁剧疆鏂囦欢铏氭嫙璺緞鏄犲皠
registry.addResourceHandler("/img/**").addResourceLocations("file:"+filePath+"/");
registry.addResourceHandler("/outPath/**").addResourceLocations("file:"+outPath);
+ registry.addResourceHandler("/word/**").addResourceLocations("file:"+wordUrl+"/");
}
@Override
protected void addInterceptors(InterceptorRegistry registry) {
- registry.addInterceptor(fiferConfig).addPathPatterns("/**");
- registry.addInterceptor(powerConfig).addPathPatterns("/**");
+// registry.addInterceptor(fiferConfig).addPathPatterns("/**");
+// registry.addInterceptor(powerConfig).addPathPatterns("/**");
+ registry.addInterceptor(logConfig).addPathPatterns("/**");
super.addInterceptors(registry);
}
}
--
Gitblit v1.9.3