Browse Source

开启压缩图片,20M限制

anderx 2 years ago
parent
commit
1c5be95ee5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/resources/spring/spring-mvc.xml

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

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