commit | author | age
|
a18bfa
|
1 |
package com.changhong.epc.config; |
Z |
2 |
|
|
3 |
import org.springframework.boot.web.servlet.MultipartConfigFactory; |
|
4 |
import org.springframework.context.annotation.Bean; |
|
5 |
import org.springframework.context.annotation.Configuration; |
|
6 |
|
|
7 |
import javax.servlet.MultipartConfigElement; |
|
8 |
|
|
9 |
@Configuration |
|
10 |
public class UploadConfig { |
|
11 |
@Bean |
|
12 |
MultipartConfigElement multipartConfigElement() { |
|
13 |
MultipartConfigFactory factory = new MultipartConfigFactory(); |
|
14 |
factory.setLocation("/tmp"); |
|
15 |
return factory.createMultipartConfig(); |
|
16 |
} |
|
17 |
} |