Explorar o código

开启压缩图片,20M限制

anderx %!s(int64=2) %!d(string=hai) anos
pai
achega
1c5be95ee5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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