提交代码
This commit is contained in:
@@ -6,11 +6,11 @@ import org.springframework.stereotype.Component;
|
||||
/**
|
||||
* 读取项目相关配置
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author zouju
|
||||
*/
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "ruoyi")
|
||||
public class RuoYiConfig
|
||||
@ConfigurationProperties(prefix = "solution")
|
||||
public class SoluTionConfig
|
||||
{
|
||||
/** 项目名称 */
|
||||
private String name;
|
||||
@@ -67,7 +67,7 @@ public class RuoYiConfig
|
||||
|
||||
public void setProfile(String profile)
|
||||
{
|
||||
RuoYiConfig.profile = profile;
|
||||
SoluTionConfig.profile = profile;
|
||||
}
|
||||
|
||||
public static boolean isAddressEnabled()
|
||||
@@ -77,7 +77,7 @@ public class RuoYiConfig
|
||||
|
||||
public void setAddressEnabled(boolean addressEnabled)
|
||||
{
|
||||
RuoYiConfig.addressEnabled = addressEnabled;
|
||||
SoluTionConfig.addressEnabled = addressEnabled;
|
||||
}
|
||||
|
||||
public static String getCaptchaType() {
|
||||
@@ -85,7 +85,7 @@ public class RuoYiConfig
|
||||
}
|
||||
|
||||
public void setCaptchaType(String captchaType) {
|
||||
RuoYiConfig.captchaType = captchaType;
|
||||
SoluTionConfig.captchaType = captchaType;
|
||||
}
|
||||
|
||||
/**
|
||||
Reference in New Issue
Block a user