com.starmcc.qmframework.config.AgentConfiguration Maven / Gradle / Ivy
package com.starmcc.qmframework.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* @Author starmcc
* @Date 2020/9/22 16:35
* @Description AOP 配置
*/
@ConfigurationProperties(prefix = "qmframework.agent", ignoreUnknownFields = false)
public class AgentConfiguration {
/**
* 是否打印日志
*/
public static boolean log;
@Value("${log:true}")
public void setLog(boolean log) {
AgentConfiguration.log = log;
}
public boolean isLog() {
return AgentConfiguration.log;
}
}