fix(uboot-common): 修改redis配置类动态配置db
This commit is contained in:
@ -19,6 +19,7 @@ import org.aspectj.lang.annotation.Before;
|
||||
import org.aspectj.lang.annotation.Pointcut;
|
||||
import org.aspectj.lang.reflect.MethodSignature;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.core.annotation.Order;
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
|
||||
@ -45,7 +46,9 @@ public class RequestShardValueAspect {
|
||||
private KeyResolver keyResolver;
|
||||
@Autowired
|
||||
private ProcessService processService;
|
||||
@Autowired
|
||||
|
||||
@Autowired(required = false)
|
||||
@Qualifier("shardingRedisTemplate")
|
||||
private RedisTemplate<String, Object> redisTemplate;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user