Commit ec604732b4ffb6484050b4107be25031312b8bda
1 parent
85f480de
gateway database方式加载失败问题解决
Showing
1 changed file
with
0 additions
and
2 deletions
jeecg-boot/jeecg-boot-starter/jeecg-boot-starter-redis/src/main/java/org/jeecg/boot/starter/redis/config/RedisConfiguration.java
@@ -7,7 +7,6 @@ import lombok.extern.slf4j.Slf4j; | @@ -7,7 +7,6 @@ import lombok.extern.slf4j.Slf4j; | ||
7 | import org.jeecg.boot.starter.redis.prop.JeecgRedisProperties; | 7 | import org.jeecg.boot.starter.redis.prop.JeecgRedisProperties; |
8 | import org.jeecg.boot.starter.redis.service.RedisReceiver; | 8 | import org.jeecg.boot.starter.redis.service.RedisReceiver; |
9 | import org.jeecg.common.constant.GlobalConstants; | 9 | import org.jeecg.common.constant.GlobalConstants; |
10 | -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | ||
11 | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; | 10 | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
12 | import org.springframework.boot.context.properties.EnableConfigurationProperties; | 11 | import org.springframework.boot.context.properties.EnableConfigurationProperties; |
13 | import org.springframework.context.annotation.Bean; | 12 | import org.springframework.context.annotation.Bean; |
@@ -41,7 +40,6 @@ public class RedisConfiguration { | @@ -41,7 +40,6 @@ public class RedisConfiguration { | ||
41 | * @return | 40 | * @return |
42 | */ | 41 | */ |
43 | @Bean | 42 | @Bean |
44 | - @ConditionalOnMissingBean(RedisTemplate.class) | ||
45 | public RedisTemplate<String, Object> redisTemplate(LettuceConnectionFactory lettuceConnectionFactory) { | 43 | public RedisTemplate<String, Object> redisTemplate(LettuceConnectionFactory lettuceConnectionFactory) { |
46 | log.info(" --- redis config init --- "); | 44 | log.info(" --- redis config init --- "); |
47 | // 设置序列化 | 45 | // 设置序列化 |