@ -48,7 +48,11 @@ public class Pdf2ImgUtil {
return null;
} finally {
if (doc != null) {
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">
<property name="defaultEncoding" value="utf-8"/>
<!-- 最大内存大小 -->
<property name="maxInMemorySize" value="10240"/>
<property name="maxInMemorySize" value="1048576"/>
<!-- 最大文件大小,-1为不限制大小 -->
<property name="maxUploadSize" value="-1"/>
</bean>