| | |
| | | package com.lf.server.config; |
| | | |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * 属性配置类 |
| | | * @author WWW |
| | | */ |
| | | @Component |
| | | @Configuration |
| | | @SuppressWarnings("AlibabaCommentsMustBeJavadocFormat") |
| | | public class PropertiesConfig { |
| | | @Value("${sys.path}") |
| | | private String path; |
| | | @Value("${sys.path.download}") |
| | | private String downloadPath; |
| | | |
| | | public String getPath() { |
| | | return path; |
| | | @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; |
| | | |
| | | public String getDownloadPath() { |
| | | return downloadPath; |
| | | } |
| | | |
| | | public void setPath(String path) { |
| | | this.path = path; |
| | | public void setDownloadPath(String downloadPath) { |
| | | this.downloadPath = downloadPath; |
| | | } |
| | | |
| | | public String getUploadPath() { |
| | | return uploadPath; |
| | | } |
| | | |
| | | public void setUploadPath(String uploadPath) { |
| | | this.uploadPath = uploadPath; |
| | | } |
| | | |
| | | public String getSharePath() { |
| | | return sharePath; |
| | | } |
| | | |
| | | public void setSharePath(String sharePath) { |
| | | this.sharePath = sharePath; |
| | | } |
| | | |
| | | public String getTempPath() { |
| | | return tempPath; |
| | | } |
| | | |
| | | public void setTempPath(String tempPath) { |
| | | this.tempPath = tempPath; |
| | | } |
| | | |
| | | public String getDruidUser() { |
| | | return druidUser; |
| | | } |
| | | |
| | | public void setDruidUser(String druidUser) { |
| | | this.druidUser = druidUser; |
| | | } |
| | | |
| | | public String getDruidPwd() { |
| | | return druidPwd; |
| | | } |
| | | |
| | | public void setDruidPwd(String druidPwd) { |
| | | this.druidPwd = druidPwd; |
| | | } |
| | | } |