Browse Source

上传限制修改

anderx 2 years ago
parent
commit
546df034ad
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

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