file.Dir变为选配置添加其默认值

This commit is contained in:
陈精华
2019-04-16 21:09:32 +08:00
committed by kl
parent b625381de3
commit 4a7ba07df1
10 changed files with 68 additions and 24 deletions

View File

@ -1,5 +1,6 @@
package cn.keking.service.impl;
import cn.keking.config.ConfigConstants;
import cn.keking.model.FileAttribute;
import cn.keking.model.ReturnResponse;
import cn.keking.service.FilePreview;
@ -25,8 +26,7 @@ public class OfficeFilePreviewImpl implements FilePreview {
@Autowired
FileUtils fileUtils;
@Value("${file.dir}")
String fileDir;
String fileDir = ConfigConstants.getFileDir();
@Autowired
DownloadUtils downloadUtils;