mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-07 20:57:12 +08:00
refactor: 统一配置启用属性描述
This commit is contained in:
@@ -30,7 +30,7 @@ import top.continew.starter.auth.satoken.autoconfigure.dao.SaTokenDaoProperties;
|
||||
public class SaTokenExtensionProperties {
|
||||
|
||||
/**
|
||||
* 是否启用扩展
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = false;
|
||||
|
||||
|
@@ -33,7 +33,7 @@ import org.springframework.boot.context.properties.NestedConfigurationProperty;
|
||||
public class RedissonProperties {
|
||||
|
||||
/**
|
||||
* 是否启用 Redisson
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
|
@@ -34,7 +34,7 @@ import java.awt.*;
|
||||
public class BehaviorCaptchaProperties {
|
||||
|
||||
/**
|
||||
* 是否启用行为验证码
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
|
@@ -30,7 +30,7 @@ import top.continew.starter.core.constant.PropertiesConstants;
|
||||
public class GraphicCaptchaProperties {
|
||||
|
||||
/**
|
||||
* 是否启用图形验证码
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
|
@@ -29,7 +29,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
public class MyBatisFlexExtensionProperties {
|
||||
|
||||
/**
|
||||
* 是否启用扩展
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = false;
|
||||
|
||||
@@ -57,7 +57,7 @@ public class MyBatisFlexExtensionProperties {
|
||||
public static class DataPermissionProperties {
|
||||
|
||||
/**
|
||||
* 是否启用数据权限插件
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = false;
|
||||
|
||||
@@ -76,7 +76,7 @@ public class MyBatisFlexExtensionProperties {
|
||||
public static class PaginationProperties {
|
||||
|
||||
/**
|
||||
* 是否启用分页插件
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
|
@@ -31,7 +31,7 @@ import top.continew.starter.data.mp.autoconfigure.idgenerator.MyBatisPlusIdGener
|
||||
public class MyBatisPlusExtensionProperties {
|
||||
|
||||
/**
|
||||
* 是否启用扩展
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = false;
|
||||
|
||||
@@ -70,7 +70,7 @@ public class MyBatisPlusExtensionProperties {
|
||||
public static class PaginationProperties {
|
||||
|
||||
/**
|
||||
* 是否启用分页插件
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
|
@@ -29,7 +29,7 @@ import top.continew.starter.core.constant.PropertiesConstants;
|
||||
public class DataPermissionProperties {
|
||||
|
||||
/**
|
||||
* 是否启用数据权限
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
|
@@ -32,7 +32,7 @@ import java.util.List;
|
||||
public class TenantProperties {
|
||||
|
||||
/**
|
||||
* 是否启用多租户
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
|
@@ -29,7 +29,7 @@ import java.util.List;
|
||||
public class AccessLogProperties {
|
||||
|
||||
/**
|
||||
* 是否打印访问日志(类似于 Nginx access log)
|
||||
* 是否启用
|
||||
* <p>
|
||||
* 不记录请求日志也支持开启打印访问日志
|
||||
* </p>
|
||||
|
@@ -36,7 +36,7 @@ import java.util.Set;
|
||||
public class LogProperties {
|
||||
|
||||
/**
|
||||
* 是否启用日志
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
|
@@ -36,7 +36,7 @@ public class WebSocketProperties {
|
||||
private static final List<String> ALL = Collections.singletonList(StringConstants.ASTERISK);
|
||||
|
||||
/**
|
||||
* 是否启用 WebSocket
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -29,7 +29,7 @@ import top.continew.starter.core.constant.PropertiesConstants;
|
||||
public class CryptoProperties {
|
||||
|
||||
/**
|
||||
* 是否启用加/解密配置
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
|
@@ -29,7 +29,7 @@ import top.continew.starter.core.constant.PropertiesConstants;
|
||||
public class PasswordEncoderProperties {
|
||||
|
||||
/**
|
||||
* 是否启用密码编解码配置
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
|
@@ -33,7 +33,7 @@ import java.util.List;
|
||||
public class XssProperties {
|
||||
|
||||
/**
|
||||
* 是否启用 XSS 过滤
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
|
@@ -30,7 +30,7 @@ import top.continew.starter.core.constant.PropertiesConstants;
|
||||
public class TraceProperties {
|
||||
|
||||
/**
|
||||
* 是否启用链路追踪配置
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = false;
|
||||
|
||||
|
@@ -36,7 +36,7 @@ public class CorsProperties {
|
||||
private static final List<String> ALL = Collections.singletonList(StringConstants.ASTERISK);
|
||||
|
||||
/**
|
||||
* 是否启用跨域配置
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = false;
|
||||
|
||||
|
@@ -36,7 +36,7 @@ public class ServerExtensionProperties {
|
||||
private static final List<String> DEFAULT_ALLOWED_METHODS = List.of("CONNECT", "TRACE", "TRACK");
|
||||
|
||||
/**
|
||||
* 是否启用跨域配置
|
||||
* 是否启用
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
|
Reference in New Issue
Block a user