|
@@ -44,11 +44,11 @@ public class AppApplication {
|
44
|
44
|
/**
|
45
|
45
|
* 文件上传临时路径
|
46
|
46
|
*/
|
47
|
|
-// @Bean
|
48
|
|
-// public MultipartConfigElement multipartConfigElement() {
|
49
|
|
-// MultipartConfigFactory factory = new MultipartConfigFactory();
|
50
|
|
-// factory.setLocation("/tmp/smart-community");
|
51
|
|
-// return factory.createMultipartConfig();
|
52
|
|
-// }
|
|
47
|
+ @Bean
|
|
48
|
+ public MultipartConfigElement multipartConfigElement() {
|
|
49
|
+ MultipartConfigFactory factory = new MultipartConfigFactory();
|
|
50
|
+ factory.setLocation("/tmp/smart-community");
|
|
51
|
+ return factory.createMultipartConfig();
|
|
52
|
+ }
|
53
|
53
|
|
54
|
54
|
}
|