no commit message
This commit is contained in:
parent
6bf77f610e
commit
f17d01406a
|
|
@ -5,60 +5,58 @@ import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 读取项目相关配置
|
* 读取项目相关配置
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
@ConfigurationProperties(prefix = "ruoyi")
|
@ConfigurationProperties(prefix = "ruoyi")
|
||||||
public class RuoYiConfig
|
public class RuoYiConfig {
|
||||||
{
|
/**
|
||||||
/** 项目名称 */
|
* 项目名称
|
||||||
private String name;
|
*/
|
||||||
/** 版本 */
|
private String name;
|
||||||
private String version;
|
/**
|
||||||
/** 版权年份 */
|
* 版本
|
||||||
private String copyrightYear;
|
*/
|
||||||
/** 上传路径 */
|
private String version;
|
||||||
private static String profile;
|
/**
|
||||||
|
* 版权年份
|
||||||
public String getName()
|
*/
|
||||||
{
|
private String copyrightYear;
|
||||||
return name;
|
/**
|
||||||
}
|
* 上传路径
|
||||||
|
*/
|
||||||
public void setName(String name)
|
private static String profile;
|
||||||
{
|
|
||||||
this.name = name;
|
public String getName() {
|
||||||
}
|
return name;
|
||||||
|
}
|
||||||
public String getVersion()
|
|
||||||
{
|
public void setName(String name) {
|
||||||
return version;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVersion(String version)
|
public String getVersion() {
|
||||||
{
|
return version;
|
||||||
this.version = version;
|
}
|
||||||
}
|
|
||||||
|
public void setVersion(String version) {
|
||||||
public String getCopyrightYear()
|
this.version = version;
|
||||||
{
|
}
|
||||||
return copyrightYear;
|
|
||||||
}
|
public String getCopyrightYear() {
|
||||||
|
return copyrightYear;
|
||||||
public void setCopyrightYear(String copyrightYear)
|
}
|
||||||
{
|
|
||||||
this.copyrightYear = copyrightYear;
|
public void setCopyrightYear(String copyrightYear) {
|
||||||
}
|
this.copyrightYear = copyrightYear;
|
||||||
|
}
|
||||||
public static String getProfile()
|
|
||||||
{
|
public static String getProfile() {
|
||||||
return profile;
|
return profile;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProfile(String profile)
|
public void setProfile(String profile) {
|
||||||
{
|
RuoYiConfig.profile = RuoYiConfig.class.getResource("/").getPath() + profile+"/";
|
||||||
RuoYiConfig.profile = profile;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue