Commit ec604732b4ffb6484050b4107be25031312b8bda

Authored by zhangdaiscott
1 parent 85f480de

gateway database方式加载失败问题解决

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 import org.jeecg.boot.starter.redis.prop.JeecgRedisProperties;
8 8 import org.jeecg.boot.starter.redis.service.RedisReceiver;
9 9 import org.jeecg.common.constant.GlobalConstants;
10   -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
11 10 import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
12 11 import org.springframework.boot.context.properties.EnableConfigurationProperties;
13 12 import org.springframework.context.annotation.Bean;
... ... @@ -41,7 +40,6 @@ public class RedisConfiguration {
41 40 * @return
42 41 */
43 42 @Bean
44   - @ConditionalOnMissingBean(RedisTemplate.class)
45 43 public RedisTemplate<String, Object> redisTemplate(LettuceConnectionFactory lettuceConnectionFactory) {
46 44 log.info(" --- redis config init --- ");
47 45 // 设置序列化
... ...