src/main/java/com/lf/server/config/PropertiesConfig.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/lf/server/helper/PathHelper.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/application.yml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/lf/server/config/PropertiesConfig.java
@@ -12,9 +12,6 @@ @Value("${sys.path.download}") private String downloadPath; @Value("${sys.path.export}") private String exportPath; @Value("${sys.path.upload}") private String uploadPath; @@ -52,14 +49,6 @@ public void setDownloadPath(String downloadPath) { this.downloadPath = downloadPath; } public String getExportPath() { return exportPath; } public void setExportPath(String exportPath) { this.exportPath = exportPath; } public String getUploadPath() { src/main/java/com/lf/server/helper/PathHelper.java
@@ -21,8 +21,6 @@ private static int downloadPath = 1; private static int exportPath = 1; private static int uploadPath = 1; private static int sharePath = 1; @@ -39,10 +37,6 @@ return downloadPath; } public static int getExportPath() { return exportPath; } public static int getUploadPath() { return uploadPath; } @@ -56,7 +50,6 @@ */ public void init() { downloadPath = getSubPath(config.getDownloadPath(), downloadPath); exportPath = getSubPath(config.getExportPath(), exportPath); uploadPath = getSubPath(config.getUploadPath(), uploadPath); sharePath = getSubPath(config.getSharePath(), sharePath); } @@ -87,15 +80,6 @@ downloadPath = getSubPath(config.getDownloadPath(), downloadPath); return config.getDownloadPath() + File.separator + downloadPath; } /** * 获取出图完整目录 */ public String getExportFullPath() { exportPath = getSubPath(config.getExportPath(), exportPath); return config.getExportPath() + File.separator + exportPath; } /** src/main/resources/application.yml
@@ -142,8 +142,6 @@ path: # 下载目录(下载文件) download: D:\LF\download # 出图目录(专题图出图) export: D:\LF\export # 上传目录(大数据上传) upload: D:\LF\upload # 共享目录(数据发布)