|
|
@@ -3,7 +3,7 @@ package com.usoftchina.uas.office.config;
|
|
|
import com.usoftchina.uas.office.listener.UasEventListenerAdapter;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
-import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;
|
|
|
+import org.springframework.data.redis.connection.RedisConnectionFactory;
|
|
|
import org.springframework.data.redis.listener.ChannelTopic;
|
|
|
import org.springframework.data.redis.listener.RedisMessageListenerContainer;
|
|
|
|
|
|
@@ -25,7 +25,7 @@ public class RedisConfig {
|
|
|
}
|
|
|
|
|
|
@Bean
|
|
|
- public RedisMessageListenerContainer redisMessageListenerContainer(LettuceConnectionFactory connectionFactory) {
|
|
|
+ public RedisMessageListenerContainer redisMessageListenerContainer(RedisConnectionFactory connectionFactory) {
|
|
|
RedisMessageListenerContainer container = new RedisMessageListenerContainer();
|
|
|
container.setConnectionFactory(connectionFactory);
|
|
|
// 订阅来自uas的消息
|