package com.yanzuoguang.cloud.aop;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 是否开启调试
 *
 * @author 颜佐光
 */
@Component
public class DebugConfig {
    /**
     * 调试模式
     */
    @Value("${yzg.debug:false}")
    private boolean debug;
    /**
     * 调试模式
     */
    @Value("${yzg.debugLog:false}")
    private boolean debugLog;
    /**
     * 缓存
     */
    @Value("${yzg.cache:true}")
    private boolean cache;

    public boolean isDebug() {
        return debug;
    }

    public void setDebug(boolean debug) {
        this.debug = debug;
    }

    public boolean isDebugLog() {
        return debugLog;
    }

    public void setDebugLog(boolean debugLog) {
        this.debugLog = debugLog;
    }

    public boolean isCache() {
        return cache;
    }

    public void setCache(boolean cache) {
        this.cache = cache;
    }
}