|  | @ -1,25 +0,0 @@
 | 
	
		
			
				|  |  | package com.yihu.jw.base.config;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import org.springframework.boot.web.servlet.MultipartConfigFactory;
 | 
	
		
			
				|  |  | import org.springframework.context.annotation.Bean;
 | 
	
		
			
				|  |  | import org.springframework.context.annotation.Configuration;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import javax.servlet.MultipartConfigElement;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | /**
 | 
	
		
			
				|  |  |  * Created by liub on 2020/9/8.
 | 
	
		
			
				|  |  |  */
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | @Configuration
 | 
	
		
			
				|  |  | public class MultipartConfig {
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 文件上传临时路径
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @Bean
 | 
	
		
			
				|  |  |     MultipartConfigElement multipartConfigElement() {
 | 
	
		
			
				|  |  |         MultipartConfigFactory factory = new MultipartConfigFactory();
 | 
	
		
			
				|  |  |         factory.setLocation("/upload_tmp");
 | 
	
		
			
				|  |  |         return factory.createMultipartConfig();
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | }
 |