package com.ghb.base.config;

import org.jeecg.common.util.RedisUtil;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;

@Configuration
@ConditionalOnBean(RedisTemplate.class)
public class RedisUtilConfig {

    @Bean
    public RedisUtil redisUtil() {
        return new RedisUtil();
    }
}
