From 848054f126942c4a207b6256716a8642c8deea51 Mon Sep 17 00:00:00 2001
From: fwq <582742538@qq.com>
Date: 星期二, 08 八月 2023 15:23:32 +0800
Subject: [PATCH] redisson原子加减操作

---
 src/main/java/com/hx/redisson/register/RedisRegister.java |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/hx/redisson/register/RedisRegister.java b/src/main/java/com/hx/redisson/register/RedisRegister.java
index faf65e8..2be389c 100644
--- a/src/main/java/com/hx/redisson/register/RedisRegister.java
+++ b/src/main/java/com/hx/redisson/register/RedisRegister.java
@@ -5,6 +5,7 @@
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.databind.jsontype.impl.LaissezFaireSubTypeValidator;
 import com.hx.redisson.entity.RedissondbConfigEntity;
+import com.hx.redisson.manager.RedisManager;
 import org.apache.commons.collections.CollectionUtils;
 import org.redisson.Redisson;
 import org.redisson.api.RedissonClient;
@@ -93,6 +94,7 @@
                 System.out.println("getHost:"+singleConfig.getAddress());
                 System.out.println("getHost:"+singleConfig.getPassword());
                 RedissonClient redissonClient = Redisson.create(config);
+
                 // 鏋勯�燫edissonConnectionFactory
                 RedissonConnectionFactory redisConnectionFactory = new RedissonConnectionFactory(redissonClient);
                 // bean瀹氫箟
@@ -105,6 +107,8 @@
                 redisTemplate(redisTemplate, redisConnectionFactory);
                 // 娉ㄥ唽Bean
                 registry.registerBeanDefinition("redisTemplate" + db, redisTemplate);
+
+                RedisManager.redissonTemplateMap.put(db+"",redissonClient);
             });
         }
         logger.info("銆娿�娿�婂姩鎬佹敞鍐宐ean缁撴潫銆嬨�嬨��");

--
Gitblit v1.8.0