package cn.wisenergy.web.config;

/**
 * 文件上传配置
 *
 * @author wyy
 * @date 2019-08-22 19:20
 */
//@Configuration
//public class FileUploadConfig {
//
//    /**
//     * 重新定义文件上传对象【springBoot request转化成MultipartHttpServletRequest】
//     */
//    @Bean(name = "multipartResolver")
//    public MultipartResolver multipartResolver() {
//        CommonsMultipartResolver resolver = new CommonsMultipartResolver();
//        resolver.setDefaultEncoding("UTF-8");
//        resolver.setResolveLazily(true);
//        resolver.setMaxInMemorySize(1024 * 1024 * 1024);
//        resolver.setMaxUploadSize(1024 * 1024 * 1024);
//        resolver.setMaxUploadSizePerFile(1024 * 1024 * 1024);
//        return resolver;
//    }
//
//}
