Browse Source

修改图片上传限制

Signed-off-by: anderx <anderx@qq.com>
anderx 5 years ago
parent
commit
92aeb1e4a2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/resources/spring/spring-mvc.xml

+ 2 - 2
src/main/resources/spring/spring-mvc.xml

@@ -111,8 +111,8 @@
 	<bean id="multipartResolver"
 		class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
 		<property name="defaultEncoding" value="UTF-8" />
-		<!-- 不限制图片上传大小 -1  -->
-		<property name="maxUploadSize" value="-1" />
+		<!-- 不限制图片上传大小 -1 不限制  -->
+		<property name="maxUploadSize" value="10485760" />
 	</bean>
 
 	<bean