cicada.filesystem.config.FileBean Maven / Gradle / Ivy
package cicada.filesystem.config;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
//@Configuration
public class FileBean
{
//@Bean("multipartResolver")
public CommonsMultipartResolver multipartConfigElement()
{
CommonsMultipartResolver multipartResolver = new CommonsMultipartResolver();
multipartResolver.setDefaultEncoding("UTF-8");
multipartResolver.setMaxUploadSize(1048576000);
multipartResolver.setMaxInMemorySize(40960);
return multipartResolver;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy