暂存提交
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.baiyue.common.audit;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
/**
|
||||
* 业务审计配置模型,控制审计开关、输出方式、远程地址、服务名和快照长度限制。
|
||||
*/
|
||||
@ConfigurationProperties("baiyue.audit")
|
||||
public class AuditProperties {
|
||||
private boolean enabled = true;
|
||||
private String endpoint;
|
||||
private int maxPayloadLength = 16000;
|
||||
private String serviceName = "unknown-service";
|
||||
|
||||
public boolean isEnabled() { return enabled; }
|
||||
public void setEnabled(boolean enabled) { this.enabled = enabled; }
|
||||
public String getEndpoint() { return endpoint; }
|
||||
public void setEndpoint(String endpoint) { this.endpoint = endpoint; }
|
||||
public int getMaxPayloadLength() { return maxPayloadLength; }
|
||||
public void setMaxPayloadLength(int maxPayloadLength) { this.maxPayloadLength = maxPayloadLength; }
|
||||
public String getServiceName() { return serviceName; }
|
||||
public void setServiceName(String serviceName) { this.serviceName = serviceName; }
|
||||
}
|
||||
Reference in New Issue
Block a user