fix(gao-ai): qualify redis beans in required args constructors
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
# Lombok 全局配置
|
||||||
|
|
||||||
|
config.stopBubbling = true
|
||||||
|
|
||||||
|
# 将字段上的 @Qualifier 复制到 @RequiredArgsConstructor 生成的构造器参数,
|
||||||
|
# 避免多个同泛型 Redis Bean 注入歧义
|
||||||
|
lombok.copyableAnnotations += org.springframework.beans.factory.annotation.Qualifier
|
||||||
+4
-4
@@ -46,11 +46,11 @@ public class GaoAiOperationServiceImplement implements GaoAiOperationService {
|
|||||||
private final ObjectMapper jackson;
|
private final ObjectMapper jackson;
|
||||||
private final List<GaoAiOperationHandler> handlerList;
|
private final List<GaoAiOperationHandler> handlerList;
|
||||||
|
|
||||||
// @Qualifier("redisLocker")
|
@Qualifier("redisLocker")
|
||||||
private Redis<String, Integer> locker;
|
private final Redis<String, Integer> locker;
|
||||||
|
|
||||||
// @Qualifier("redisRateLimit")
|
@Qualifier("redisRateLimit")
|
||||||
private Redis<String, Integer> rateLimitRedis;
|
private final Redis<String, Integer> rateLimitRedis;
|
||||||
|
|
||||||
private Map<GaoAiOperation, GaoAiOperationHandler> handlerMap;
|
private Map<GaoAiOperation, GaoAiOperationHandler> handlerMap;
|
||||||
|
|
||||||
|
|||||||
+6
-6
@@ -30,14 +30,14 @@ public class GaoAiPendingOperationServiceImplement implements GaoAiPendingOperat
|
|||||||
|
|
||||||
private final GaoAiProperties properties;
|
private final GaoAiProperties properties;
|
||||||
|
|
||||||
// @Qualifier("redisGaoAiOperation")
|
@Qualifier("redisGaoAiOperation")
|
||||||
private Redis<String, GaoAiPendingOperation> redis;
|
private final Redis<String, GaoAiPendingOperation> redis;
|
||||||
|
|
||||||
// @Qualifier("redisGaoAiOperationIndex")
|
@Qualifier("redisGaoAiOperationIndex")
|
||||||
private Redis<String, String> indexRedis;
|
private final Redis<String, String> indexRedis;
|
||||||
|
|
||||||
// @Qualifier("redisLocker")
|
@Qualifier("redisLocker")
|
||||||
private Redis<String, Integer> locker;
|
private final Redis<String, Integer> locker;
|
||||||
|
|
||||||
private final SecureRandom secureRandom = new SecureRandom();
|
private final SecureRandom secureRandom = new SecureRandom();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user