Authored by unknown

解决空指针

@@ -79,11 +79,7 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher @@ -79,11 +79,7 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher
79 79
80 @Redis("yohoNoSyncRedis") 80 @Redis("yohoNoSyncRedis")
81 YHRedisTemplate yHRedisTemplate; 81 YHRedisTemplate yHRedisTemplate;
82 -  
83 -// @Redis("yohoNoSyncRedis")  
84 -// YHValueOperations yhValueOperations;  
85 -  
86 - @Redis("yohoNoSyncRedis") 82 + @Autowired
87 RedisValueCache yhValueOperations; 83 RedisValueCache yhValueOperations;
88 84
89 @Value("${exclude.union.type:100000000000349}") 85 @Value("${exclude.union.type:100000000000349}")
@@ -2,33 +2,15 @@ redis: @@ -2,33 +2,15 @@ redis:
2 yohoNoSyncRedis : 2 yohoNoSyncRedis :
3 servers: 3 servers:
4 - 192.168.103.32:6379 4 - 192.168.103.32:6379
5 -# readOnly:  
6 -# - 192.168.103.32:6379  
7 -# cleanMq:  
8 -# addresses:  
9 -# 192.168.157.129:5672  
10 -# username:  
11 -# yoho  
12 -# password:  
13 -# yoho  
14 -# vhost:  
15 -# yoho 5 + readOnly:
  6 + - 192.168.103.32:6379
  7 + cleanMq:
  8 + addresses:
  9 + 192.168.102.45:5672
  10 +
16 yohoSyncRedis : 11 yohoSyncRedis :
17 servers: 12 servers:
18 - 192.168.103.32:6379 13 - 192.168.103.32:6379
19 sync: 14 sync:
20 true 15 true
21 16
22 -#pool:  
23 -# maxTotal:  
24 -# 80  
25 -# maxIdle:  
26 -# 10  
27 -# minIdle:  
28 -# 5  
29 -# maxWaitMillis:  
30 -# 2000  
31 -# testOnBorrow:  
32 -# false  
33 -# testWhileIdle:  
34 -# true