Commit d0164007 authored by liqin's avatar liqin 💬

bug fixed

parent 7a511ba6
......@@ -269,7 +269,7 @@ public class UploadServiceImpl implements UploadService {
*/
private Path fileStorageLocation; // 文件在本地存储的地址
public UploadServiceImpl(@Value("${file.upload.path}") String path) {
public UploadServiceImpl(@Value("${file.upload.path:#{null}}") String path) {
this.fileStorageLocation = Paths.get(path).toAbsolutePath().normalize();
try {
Files.createDirectories(this.fileStorageLocation);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment