package com.changhong.epc.config;
|
|
import org.springframework.boot.web.servlet.MultipartConfigFactory;
|
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Configuration;
|
|
import javax.servlet.MultipartConfigElement;
|
|
@Configuration
|
public class UploadConfig {
|
@Bean
|
MultipartConfigElement multipartConfigElement() {
|
MultipartConfigFactory factory = new MultipartConfigFactory();
|
factory.setLocation("/tmp");
|
return factory.createMultipartConfig();
|
}
|
}
|