All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xinjump.easyexcel.example.DemoApplication Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package com.xinjump.easyexcel.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.MultipartConfigFactory;
import org.springframework.context.annotation.Bean;

import javax.servlet.MultipartConfigElement;

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(DemoApplication.class, args);
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }

    @Bean
    public MultipartConfigElement multipartConfigElement() {
        MultipartConfigFactory factory = new MultipartConfigFactory();
        factory.setMaxRequestSize("200Mb");
        factory.setMaxFileSize("200Mb");
        return factory.createMultipartConfig();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy