【问题标题】:File Uploading Spring Webflow 2.3 and Security文件上传 Spring Webflow 2.3 和安全性
【发布时间】:2012-10-04 02:14:55
【问题描述】:

有人在使用 Spring Webflow 2.3 和 Spring Security 上传文件时遇到问题吗?每当我有一个带有 enctype="multipart/form-data" 的 JSP 页面时,它都会起火。我已经添加了这个:

<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
    <!-- one of the properties available; the maximum file size in bytes -->
    <property name="maxUploadSize" value="100000"/>
</bean>

进入 Spring 配置并让应用程序可以使用 commons-fileupload JAR

【问题讨论】:

  • 如果您进入日志,请发布任何例外情况

标签: spring-security spring-webflow


【解决方案1】:

maxUploadSize 增加为value="1048576",奇怪的是它不会抛出任何异常。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-10-16
    • 1970-01-01
    • 2020-08-25
    • 1970-01-01
    • 1970-01-01
    • 2016-02-17
    • 2012-07-21
    相关资源
    最近更新 更多