mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	remove 删除无用配置
This commit is contained in:
		@@ -5,11 +5,7 @@ ruoyi:
 | 
			
		||||
  # 版本
 | 
			
		||||
  version: ${ruoyi-vue-plus.version}
 | 
			
		||||
  # 版权年份
 | 
			
		||||
  copyrightYear: 2022
 | 
			
		||||
  # 实例演示开关
 | 
			
		||||
  demoEnabled: true
 | 
			
		||||
  # 获取ip地址开关
 | 
			
		||||
  addressEnabled: true
 | 
			
		||||
  copyrightYear: 2023
 | 
			
		||||
  # 缓存懒加载
 | 
			
		||||
  cacheLazy: false
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,6 @@
 | 
			
		||||
package com.ruoyi.common.config;
 | 
			
		||||
 | 
			
		||||
import lombok.Data;
 | 
			
		||||
import lombok.Getter;
 | 
			
		||||
import org.springframework.boot.context.properties.ConfigurationProperties;
 | 
			
		||||
import org.springframework.stereotype.Component;
 | 
			
		||||
 | 
			
		||||
@@ -31,24 +30,9 @@ public class RuoYiConfig {
 | 
			
		||||
     */
 | 
			
		||||
    private String copyrightYear;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 实例演示开关
 | 
			
		||||
     */
 | 
			
		||||
    private boolean demoEnabled;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 缓存懒加载
 | 
			
		||||
     */
 | 
			
		||||
    private boolean cacheLazy;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 获取地址开关
 | 
			
		||||
     */
 | 
			
		||||
    @Getter
 | 
			
		||||
    private static boolean addressEnabled;
 | 
			
		||||
 | 
			
		||||
    public void setAddressEnabled(boolean addressEnabled) {
 | 
			
		||||
        RuoYiConfig.addressEnabled = addressEnabled;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user