mirror of https://github.com/jeecgboot/jeecg-boot
gateway路由采用database方式加载,失败问题解决
parent
1c234fbaff
commit
39bb7a46fd
|
@ -7,7 +7,6 @@ import lombok.extern.slf4j.Slf4j;
|
||||||
import org.jeecg.boot.starter.redis.prop.JeecgRedisProperties;
|
import org.jeecg.boot.starter.redis.prop.JeecgRedisProperties;
|
||||||
import org.jeecg.boot.starter.redis.service.RedisReceiver;
|
import org.jeecg.boot.starter.redis.service.RedisReceiver;
|
||||||
import org.jeecg.common.constant.GlobalConstants;
|
import org.jeecg.common.constant.GlobalConstants;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
|
@ -41,7 +40,6 @@ public class RedisConfiguration {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean(RedisTemplate.class)
|
|
||||||
public RedisTemplate<String, Object> redisTemplate(LettuceConnectionFactory lettuceConnectionFactory) {
|
public RedisTemplate<String, Object> redisTemplate(LettuceConnectionFactory lettuceConnectionFactory) {
|
||||||
log.info(" --- redis config init --- ");
|
log.info(" --- redis config init --- ");
|
||||||
// 设置序列化
|
// 设置序列化
|
||||||
|
|
Loading…
Reference in New Issue