Commit 206dbb1a7fdaa1d027369b6ebb058cf421cfc63f
1 parent
25b13003f1
Exists in
master
and in
6 other branches
系统升级
Showing 1 changed file with 8 additions and 0 deletions
platform-operate-api/src/main/resources/spring/applicationContext-mvc.xml
View file @
206dbb1
| ... | ... | @@ -34,6 +34,14 @@ |
| 34 | 34 | </property> |
| 35 | 35 | </bean> |
| 36 | 36 | |
| 37 | + <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> | |
| 38 | + <!-- 设置上传文件的最大尺寸为10M --> | |
| 39 | + <property name="maxUploadSize" value="102400"/> | |
| 40 | + <property name="maxInMemorySize" value="40960"/> | |
| 41 | + <property name="defaultEncoding" value="UTF-8"/> | |
| 42 | + <property name="resolveLazily" value="true"/> | |
| 43 | + </bean> | |
| 44 | + | |
| 37 | 45 | |
| 38 | 46 | <mvc:interceptors> |
| 39 | 47 | <bean id="tokenValidateInteceptor" class="com.lyms.platform.operate.web.inteceptor.TokenValidateInteceptor"/> |