package net.muszytowski.WearableInspectionServer;

import javax.servlet.MultipartConfigElement;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.embedded.MultiPartConfigFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@ComponentScan
@Configuration
@EnableAutoConfiguration
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
    
    @Bean
    MultipartConfigElement multipartConfigElement() {
        MultiPartConfigFactory factory = new MultiPartConfigFactory();
        factory.setMaxFileSize("128MB");
        factory.setMaxRequestSize("128MB");
        return factory.createMultipartConfig();
    }

}

@@ -48,54 +48,8 @@
 r;%0A%0A
-import javax.servlet.MultipartConfigElement;%0A%0A
 impo
@@ -170,133 +170,8 @@
 on;%0A
-import org.springframework.boot.context.embedded.MultiPartConfigFactory;%0Aimport org.springframework.context.annotation.Bean;%0A
 impo
@@ -488,281 +488,6 @@
    %0A
-    @Bean%0A    MultipartConfigElement multipartConfigElement() %7B%0A        MultiPartConfigFactory factory = new MultiPartConfigFactory();%0A        factory.setMaxFileSize(%22128MB%22);%0A        factory.setMaxRequestSize(%22128MB%22);%0A        return factory.createMultipartConfig();%0A    %7D%0A%0A
 %7D%0A

remove upload stuff