refactor: 统一配置启用属性描述

This commit is contained in:
2025-04-04 17:34:18 +08:00
parent 45da758dee
commit efaef9d7e6
18 changed files with 33 additions and 20 deletions

View File

@@ -28,11 +28,24 @@ import top.continew.starter.core.constant.PropertiesConstants;
@ConfigurationProperties(PropertiesConstants.RATE_LIMITER)
public class RateLimiterProperties {
/**
* 是否启用
*/
private boolean enabled = true;
/**
* Key 前缀
*/
private String keyPrefix = "RateLimiter";
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public String getKeyPrefix() {
return keyPrefix;
}