`

Spring MVC file limit - MultipartResolver config

阅读更多
<!-- MultipartResolver for parsing file uploads, implementation for Commons FileUpload -->
    <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
        <!-- set the upload file's size to 1MB ????-->
        <property name="maxUploadSize">  
             <value>1048576</value>  
        </property>
        <property name="defaultEncoding">  
            <value>UTF-8</value>  
        </property> 
    </bean>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics