费用清单上传文件最大内存修改

master
hcy 2 years ago
parent 01ce123fd5
commit 1be2f9b37f

@ -48,7 +48,11 @@ public class Pdf2ImgUtil {
return null; return null;
} finally { } finally {
if (doc != null) { if (doc != null) {
doc.close(); try {
doc.close();
} catch (IOException e) {
throw new RuntimeException("关闭PDDocument时发生错误", e);
}
} }
} }

@ -183,7 +183,7 @@
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<property name="defaultEncoding" value="utf-8"/> <property name="defaultEncoding" value="utf-8"/>
<!-- 最大内存大小 --> <!-- 最大内存大小 -->
<property name="maxInMemorySize" value="10240"/> <property name="maxInMemorySize" value="1048576"/>
<!-- 最大文件大小,-1为不限制大小 --> <!-- 最大文件大小,-1为不限制大小 -->
<property name="maxUploadSize" value="-1"/> <property name="maxUploadSize" value="-1"/>
</bean> </bean>

Loading…
Cancel
Save