@Configuration @ConditionalOnClass(value=org.redisson.Redisson.class) @AutoConfigureAfter(value=org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration.class) @EnableConfigurationProperties(value=RedissonProperties.class) @ConditionalOnProperty(name="spring.redis.enable", havingValue="true", matchIfMissing=false) public class RedissonAutoConfiguration extends java.lang.Object
构造器和说明 |
---|
RedissonAutoConfiguration() |
限定符和类型 | 方法和说明 |
---|---|
org.redisson.api.RedissonClient |
redisson() |
org.redisson.spring.data.connection.RedissonConnectionFactory |
redissonConnectionFactory(org.redisson.api.RedissonClient redisson) |
@Bean @ConditionalOnMissingBean(value=org.springframework.data.redis.connection.RedisConnectionFactory.class) @ConfigurationProperties(prefix="spring.redis") public org.redisson.spring.data.connection.RedissonConnectionFactory redissonConnectionFactory(org.redisson.api.RedissonClient redisson)
@Bean(destroyMethod="shutdown") @ConditionalOnMissingBean(value=org.redisson.api.RedissonClient.class) public org.redisson.api.RedissonClient redisson() throws java.io.IOException
java.io.IOException