获取ip地址开关

This commit is contained in:
RuoYi
2018-08-10 14:36:31 +08:00
parent d7dc50a157
commit 07ffcbf6eb
28 changed files with 27 additions and 55 deletions

View File

@ -1,5 +1,6 @@
package com.ruoyi.framework.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@ -20,6 +21,8 @@ public class RuoYiConfig
private String copyrightYear;
/** 上传路径 */
private static String profile;
/** 获取地址开关 */
private static boolean addressEnabled;
public String getName()
{
@ -61,4 +64,14 @@ public class RuoYiConfig
RuoYiConfig.profile = profile;
}
public static boolean isAddressEnabled()
{
return addressEnabled;
}
public void setAddressEnabled(boolean addressEnabled)
{
RuoYiConfig.addressEnabled = addressEnabled;
}
}