From 4ab942df06d2f7d6f2df1102ef5b83d6a1696763 Mon Sep 17 00:00:00 2001
From: lyfO_o <764716047@qq.com>
Date: 星期一, 20 二月 2023 17:14:14 +0800
Subject: [PATCH] 人员文件上传

---
 src/main/webapp/WEB-INF/spring-mvc.xml |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/WEB-INF/spring-mvc.xml b/src/main/webapp/WEB-INF/spring-mvc.xml
index f4d9967..00bb5d0 100644
--- a/src/main/webapp/WEB-INF/spring-mvc.xml
+++ b/src/main/webapp/WEB-INF/spring-mvc.xml
@@ -19,8 +19,7 @@
 	<context:component-scan base-package="com.nanometer.smartlab.api"/>
 	<context:component-scan base-package="com.nanometer.smartlab.controller"/>
 
-	<!-- 静态资源(js、image等)的访问 -->
-	<mvc:default-servlet-handler/>
+
 	<context:property-placeholder ignore-unresolvable="true"        location="WEB-INF/config.properties" file-encoding="UTF-8"/>
 	<!-- 开启注解 -->
 	<!-- 默认的注解映射的支持,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping -->
@@ -54,4 +53,9 @@
 	<mvc:cors>
 		<mvc:mapping path="/**" allowed-origins="*" allow-credentials="true" max-age="1800" allowed-methods="GET,POST"/>
 	</mvc:cors>
+
+
+	<mvc:resources mapping="/upload/**"  location="file:///d:/opt/file/smartlab/img/" />
+	<!-- 静态资源(js、image等)的访问 -->
+	<mvc:default-servlet-handler/>
 </beans>

--
Gitblit v1.9.2