From a8e6dea01e2dc1f33e85b23605b25afd82dae6ae Mon Sep 17 00:00:00 2001
From: lyfO_o <764716047@qq.com>
Date: Fri, 31 Mar 2023 09:14:22 +0800
Subject: [PATCH] 苏州盛迪亚生物医药有限公司配置文件
---
src/main/webapp/WEB-INF/spring-mvc.xml | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/main/webapp/WEB-INF/spring-mvc.xml b/src/main/webapp/WEB-INF/spring-mvc.xml
index 223f060..4726456 100644
--- a/src/main/webapp/WEB-INF/spring-mvc.xml
+++ b/src/main/webapp/WEB-INF/spring-mvc.xml
@@ -11,15 +11,15 @@
http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.0.xsd
- http://www.springframework.org/schema/task
+ http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task-4.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-2.0.xsd">
<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 -->
@@ -51,6 +51,11 @@
</bean>
<mvc:cors>
- <mvc:mapping path="/**" allowed-origins="*" allow-credentials="true" max-age="1800" allowed-methods="GET,POST,OPTIONS"/>
+ <mvc:mapping path="/**" allowed-origins="*" allow-credentials="true" max-age="1800" allowed-methods="GET,POST"/>
</mvc:cors>
-</beans>
\ No newline at end of file
+
+
+ <mvc:resources mapping="/upload/**" location="file:${personImgPath}" />
+ <!-- 静态资源(js、image等)的访问 -->
+ <mvc:default-servlet-handler/>
+</beans>
--
Gitblit v1.9.2