1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-01 16:38:02 +08:00
This commit is contained in:
dengchao@xgtl 2020-04-15 17:19:16 +08:00
parent 4752756ab2
commit 13fe10e231

View File

@ -85,7 +85,7 @@ public class Application {
}
@Value("${web.upload-path}")
private String uploaddir;
private String uploadDir;
@Value("${spring.servlet.multipart.max-file-size}")
private DataSize multipartMaxUpload;
@Value("${spring.servlet.multipart.max-request-size}")
@ -125,7 +125,7 @@ public class Application {
MultipartConfigFactory factory = new MultipartConfigFactory();
factory.setMaxFileSize(multipartMaxUpload); //KB,MB
factory.setMaxRequestSize(multipartMaxRequest);
factory.setLocation(uploaddir);
factory.setLocation(uploadDir);
return factory.createMultipartConfig();
}