org.zodiac.autoconfigure.redis.reactive.ReactiveRedisConfigAutoConfiguration Maven / Gradle / Ivy
package org.zodiac.autoconfigure.redis.reactive;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.boot.autoconfigure.data.redis.RedisReactiveAutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.util.ClassUtils;
import org.zodiac.autoconfigure.redis.RedisCacheCloudProperties;
import org.zodiac.autoconfigure.redis.RedisCacheCloudRedissonProperties;
import org.zodiac.autoconfigure.redis.RedisConfigAutoConfiguration;
import org.zodiac.commons.constants.SystemPropertiesConstants;
@SpringBootConfiguration
@ConditionalOnWebApplication(type = Type.REACTIVE)
@ConditionalOnClass(value = {org.springframework.data.redis.core.RedisOperations.class})
@Import(value = {ReactiveRedissonConnectionConfiguration.class})
@AutoConfigureBefore(value = {RedisReactiveAutoConfiguration.class})
@EnableConfigurationProperties(value = {RedisProperties.class})
public class ReactiveRedisConfigAutoConfiguration {
}