From c91f01aea1e72de276884674f962910add4d745e Mon Sep 17 00:00:00 2001 From: zlt2000 Date: Sat, 25 Nov 2023 10:57:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9property=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/central/admin/properties/IndexProperties.java | 2 -- .../central/oauth2/common/properties/SecurityProperties.java | 2 -- .../central/oauth2/common/properties/TokenStoreProperties.java | 2 -- .../java/com/central/common/properties/DataScopeProperties.java | 2 -- .../java/com/central/common/properties/TenantProperties.java | 2 -- .../central/db/properties/MybatisPlusAutoFillProperties.java | 2 -- .../com/central/es/properties/RestClientPoolProperties.java | 2 -- .../com/central/common/lb/config/RestTemplateProperties.java | 2 -- .../java/com/central/log/properties/AuditLogProperties.java | 2 -- .../main/java/com/central/log/properties/LogDbProperties.java | 2 -- .../main/java/com/central/log/properties/TraceProperties.java | 2 -- .../java/com/central/oss/properties/FileServerProperties.java | 1 - .../central/common/redis/properties/CacheManagerProperties.java | 2 -- .../central/common/zookeeper/properties/ZookeeperProperty.java | 2 -- 14 files changed, 27 deletions(-) diff --git a/zlt-business/search-center/search-server/src/main/java/com/central/admin/properties/IndexProperties.java b/zlt-business/search-center/search-server/src/main/java/com/central/admin/properties/IndexProperties.java index 0a0edbe1..61d5d129 100644 --- a/zlt-business/search-center/search-server/src/main/java/com/central/admin/properties/IndexProperties.java +++ b/zlt-business/search-center/search-server/src/main/java/com/central/admin/properties/IndexProperties.java @@ -4,7 +4,6 @@ import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.cloud.context.config.annotation.RefreshScope; -import org.springframework.stereotype.Component; /** * 索引配置 @@ -15,7 +14,6 @@ import org.springframework.stereotype.Component; @Getter @ConfigurationProperties(prefix = "zlt.indices") @RefreshScope -@Component public class IndexProperties { /** * 配置过滤的索引名:默认只显示这些索引 diff --git a/zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/properties/SecurityProperties.java b/zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/properties/SecurityProperties.java index b2b0280b..c23adea3 100644 --- a/zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/properties/SecurityProperties.java +++ b/zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/properties/SecurityProperties.java @@ -4,7 +4,6 @@ import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.cloud.context.config.annotation.RefreshScope; -import org.springframework.stereotype.Component; /** * @author zlt @@ -18,7 +17,6 @@ import org.springframework.stereotype.Component; @Getter @ConfigurationProperties(prefix = "zlt.security") @RefreshScope -@Component public class SecurityProperties { private AuthProperties auth = new AuthProperties(); diff --git a/zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/properties/TokenStoreProperties.java b/zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/properties/TokenStoreProperties.java index bb1c4b44..d49a6c4c 100644 --- a/zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/properties/TokenStoreProperties.java +++ b/zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/properties/TokenStoreProperties.java @@ -4,7 +4,6 @@ import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.cloud.context.config.annotation.RefreshScope; -import org.springframework.stereotype.Component; /** * Token配置 @@ -20,7 +19,6 @@ import org.springframework.stereotype.Component; @Getter @ConfigurationProperties(prefix = "zlt.oauth2.token.store") @RefreshScope -@Component public class TokenStoreProperties { /** * token存储类型(redis/db/authJwt/resJwt) diff --git a/zlt-commons/zlt-common-core/src/main/java/com/central/common/properties/DataScopeProperties.java b/zlt-commons/zlt-common-core/src/main/java/com/central/common/properties/DataScopeProperties.java index d2170e81..2d3720a3 100644 --- a/zlt-commons/zlt-common-core/src/main/java/com/central/common/properties/DataScopeProperties.java +++ b/zlt-commons/zlt-common-core/src/main/java/com/central/common/properties/DataScopeProperties.java @@ -4,7 +4,6 @@ import cn.hutool.core.collection.CollUtil; import com.google.common.collect.ImmutableSet; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.stereotype.Component; import java.util.Collections; import java.util.HashSet; @@ -17,7 +16,6 @@ import java.util.Set; */ @ConfigurationProperties(prefix = "zlt.datascope") @Data -@Component public class DataScopeProperties { private static final Set INGORE_SQL_ID = ImmutableSet .of("com.central.user.mapper.findRolesByUserId" diff --git a/zlt-commons/zlt-common-core/src/main/java/com/central/common/properties/TenantProperties.java b/zlt-commons/zlt-common-core/src/main/java/com/central/common/properties/TenantProperties.java index 51bdedaa..e749a1f3 100644 --- a/zlt-commons/zlt-common-core/src/main/java/com/central/common/properties/TenantProperties.java +++ b/zlt-commons/zlt-common-core/src/main/java/com/central/common/properties/TenantProperties.java @@ -4,7 +4,6 @@ import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.cloud.context.config.annotation.RefreshScope; -import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.List; @@ -18,7 +17,6 @@ import java.util.List; @Getter @ConfigurationProperties(prefix = "zlt.tenant") @RefreshScope -@Component public class TenantProperties { /** * 是否开启多租户 diff --git a/zlt-commons/zlt-db-spring-boot-starter/src/main/java/com/central/db/properties/MybatisPlusAutoFillProperties.java b/zlt-commons/zlt-db-spring-boot-starter/src/main/java/com/central/db/properties/MybatisPlusAutoFillProperties.java index e62773e3..4217377e 100644 --- a/zlt-commons/zlt-db-spring-boot-starter/src/main/java/com/central/db/properties/MybatisPlusAutoFillProperties.java +++ b/zlt-commons/zlt-db-spring-boot-starter/src/main/java/com/central/db/properties/MybatisPlusAutoFillProperties.java @@ -4,7 +4,6 @@ import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.cloud.context.config.annotation.RefreshScope; -import org.springframework.stereotype.Component; /** * mybatis-plus 配置 @@ -19,7 +18,6 @@ import org.springframework.stereotype.Component; @Getter @ConfigurationProperties(prefix = "zlt.mybatis-plus.auto-fill") @RefreshScope -@Component public class MybatisPlusAutoFillProperties { /** * 是否开启自动填充字段 diff --git a/zlt-commons/zlt-elasticsearch-spring-boot-starter/src/main/java/com/central/es/properties/RestClientPoolProperties.java b/zlt-commons/zlt-elasticsearch-spring-boot-starter/src/main/java/com/central/es/properties/RestClientPoolProperties.java index 8a8d725f..bfe5f8d2 100644 --- a/zlt-commons/zlt-elasticsearch-spring-boot-starter/src/main/java/com/central/es/properties/RestClientPoolProperties.java +++ b/zlt-commons/zlt-elasticsearch-spring-boot-starter/src/main/java/com/central/es/properties/RestClientPoolProperties.java @@ -4,7 +4,6 @@ import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.cloud.context.config.annotation.RefreshScope; -import org.springframework.stereotype.Component; /** * es的httpClient连接池配置 @@ -19,7 +18,6 @@ import org.springframework.stereotype.Component; @Getter @ConfigurationProperties(prefix = "zlt.elasticsearch.rest-pool") @RefreshScope -@Component public class RestClientPoolProperties { /** * 链接建立超时时间 diff --git a/zlt-commons/zlt-loadbalancer-spring-boot-starter/src/main/java/com/central/common/lb/config/RestTemplateProperties.java b/zlt-commons/zlt-loadbalancer-spring-boot-starter/src/main/java/com/central/common/lb/config/RestTemplateProperties.java index 4833e8cd..2e51ada2 100644 --- a/zlt-commons/zlt-loadbalancer-spring-boot-starter/src/main/java/com/central/common/lb/config/RestTemplateProperties.java +++ b/zlt-commons/zlt-loadbalancer-spring-boot-starter/src/main/java/com/central/common/lb/config/RestTemplateProperties.java @@ -3,7 +3,6 @@ package com.central.common.lb.config; import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.stereotype.Component; /** * RestTemplate 配置 @@ -17,7 +16,6 @@ import org.springframework.stereotype.Component; @Setter @Getter @ConfigurationProperties(prefix = "zlt.rest-template") -@Component public class RestTemplateProperties { /** * 最大链接数 diff --git a/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/properties/AuditLogProperties.java b/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/properties/AuditLogProperties.java index 61faf49a..0ea4941e 100644 --- a/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/properties/AuditLogProperties.java +++ b/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/properties/AuditLogProperties.java @@ -4,7 +4,6 @@ import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.cloud.context.config.annotation.RefreshScope; -import org.springframework.stereotype.Component; /** * 审计日志配置 @@ -19,7 +18,6 @@ import org.springframework.stereotype.Component; @Getter @ConfigurationProperties(prefix = "zlt.audit-log") @RefreshScope -@Component public class AuditLogProperties { /** * 是否开启审计日志 diff --git a/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/properties/LogDbProperties.java b/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/properties/LogDbProperties.java index 4b169c68..f54e9837 100644 --- a/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/properties/LogDbProperties.java +++ b/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/properties/LogDbProperties.java @@ -5,7 +5,6 @@ import lombok.Getter; import lombok.Setter; import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.stereotype.Component; /** * 日志数据源配置 @@ -21,6 +20,5 @@ import org.springframework.stereotype.Component; @Getter @ConfigurationProperties(prefix = "zlt.audit-log.datasource") @ConditionalOnClass(HikariConfig.class) -@Component public class LogDbProperties extends HikariConfig { } diff --git a/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/properties/TraceProperties.java b/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/properties/TraceProperties.java index 2a3cd238..a3daa546 100644 --- a/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/properties/TraceProperties.java +++ b/zlt-commons/zlt-log-spring-boot-starter/src/main/java/com/central/log/properties/TraceProperties.java @@ -4,7 +4,6 @@ import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.cloud.context.config.annotation.RefreshScope; -import org.springframework.stereotype.Component; /** * 日志链路追踪配置 @@ -16,7 +15,6 @@ import org.springframework.stereotype.Component; @Getter @ConfigurationProperties(prefix = "zlt.trace") @RefreshScope -@Component public class TraceProperties { /** * 是否开启日志链路追踪 diff --git a/zlt-commons/zlt-oss-spring-boot-starter/src/main/java/com/central/oss/properties/FileServerProperties.java b/zlt-commons/zlt-oss-spring-boot-starter/src/main/java/com/central/oss/properties/FileServerProperties.java index 28288093..565ef7b7 100644 --- a/zlt-commons/zlt-oss-spring-boot-starter/src/main/java/com/central/oss/properties/FileServerProperties.java +++ b/zlt-commons/zlt-oss-spring-boot-starter/src/main/java/com/central/oss/properties/FileServerProperties.java @@ -3,7 +3,6 @@ package com.central.oss.properties; import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.stereotype.Component; /** * @author zlt diff --git a/zlt-commons/zlt-redis-spring-boot-starter/src/main/java/com/central/common/redis/properties/CacheManagerProperties.java b/zlt-commons/zlt-redis-spring-boot-starter/src/main/java/com/central/common/redis/properties/CacheManagerProperties.java index 4b969a94..422c6ef0 100644 --- a/zlt-commons/zlt-redis-spring-boot-starter/src/main/java/com/central/common/redis/properties/CacheManagerProperties.java +++ b/zlt-commons/zlt-redis-spring-boot-starter/src/main/java/com/central/common/redis/properties/CacheManagerProperties.java @@ -3,7 +3,6 @@ package com.central.common.redis.properties; import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.stereotype.Component; import java.util.List; @@ -14,7 +13,6 @@ import java.util.List; @Setter @Getter @ConfigurationProperties(prefix = "zlt.cache-manager") -@Component public class CacheManagerProperties { private List configs; diff --git a/zlt-commons/zlt-zookeeper-spring-boot-starter/src/main/java/com/central/common/zookeeper/properties/ZookeeperProperty.java b/zlt-commons/zlt-zookeeper-spring-boot-starter/src/main/java/com/central/common/zookeeper/properties/ZookeeperProperty.java index 637ab89f..f65781d1 100644 --- a/zlt-commons/zlt-zookeeper-spring-boot-starter/src/main/java/com/central/common/zookeeper/properties/ZookeeperProperty.java +++ b/zlt-commons/zlt-zookeeper-spring-boot-starter/src/main/java/com/central/common/zookeeper/properties/ZookeeperProperty.java @@ -3,7 +3,6 @@ package com.central.common.zookeeper.properties; import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.stereotype.Component; /** * zookeeper配置 @@ -18,7 +17,6 @@ import org.springframework.stereotype.Component; @Setter @Getter @ConfigurationProperties(prefix = "zlt.zookeeper") -@Component public class ZookeeperProperty { /** * zk连接集群,多个用逗号隔开