mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-01 16:38:02 +08:00
Fix typo
This commit is contained in:
parent
4752756ab2
commit
13fe10e231
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user