管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-11 fa68791d3dea961ac3b37479928ac742f9603516
1
已修改3个文件
29 ■■■■■ 文件已修改
src/main/java/com/lf/server/config/PropertiesConfig.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/helper/PathHelper.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 2 ●●●●● 补丁 | 查看 | 原始文档 | 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
    # 共享目录(数据发布)