管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-03-18 a55fb5ff1c9901568e618df44e67912961a0d705
src/main/java/com/lf/server/config/PropertiesConfig.java
@@ -1,11 +1,61 @@
package com.lf.server.config;
import org.springframework.stereotype.Component;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
/**
 * 属性配置类
 * @author WWW
 */
@Component
@Configuration
@SuppressWarnings("AlibabaCommentsMustBeJavadocFormat")
public class PropertiesConfig {
    @Value("${sys.path.download}")
    private String downloadPath;
    @Value("${sys.path.upload}")
    private String uploadPath;
    @Value("${sys.path.share}")
    private String sharePath;
    @Value("${sys.path.temp}")
    private String tempPath;
    // @Value("${spring.datasource.druid.stat-view-servlet.login-username}")
    private String druidUser;
    // @Value("${spring.datasource.druid.stat-view-servlet.login-password}")
    private String druidPwd;
    @Value("${sys.tile_path}")
    private String tilePath;
    public String getDownloadPath() {
        return downloadPath;
    }
    public String getUploadPath() {
        return uploadPath;
    }
    public String getSharePath() {
        return sharePath;
    }
    public String getTempPath() {
        return tempPath;
    }
    public String getDruidUser() {
        return druidUser;
    }
    public String getDruidPwd() {
        return druidPwd;
    }
    public String getTilePath() {
        return tilePath;
    }
}