Package com.asual.summer.core.spring

Examples of com.asual.summer.core.spring.RequestMultipartResolver


 
  protected void initFilterBean() throws ServletException {
    if (multipartResolver == null) {
      try {
        ClassUtils.getClass("org.apache.commons.fileupload.FileItemFactory");
        RequestMultipartResolver requestMultipartResolver = new RequestMultipartResolver();
        Object maxInMemorySize = ResourceUtils.getProperty("app.maxInMemorySize");
        if (maxInMemorySize != null) {
          requestMultipartResolver.setMaxInMemorySize((Integer) maxInMemorySize);
        }
        Object maxUploadSize = ResourceUtils.getProperty("app.maxUploadSize");
        if (maxUploadSize != null) {
          requestMultipartResolver.setMaxUploadSize((Integer) maxUploadSize);
        }
        multipartResolver = requestMultipartResolver;
      } catch (ClassNotFoundException e) {
      }
    }
View Full Code Here

TOP

Related Classes of com.asual.summer.core.spring.RequestMultipartResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.