You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parameter 0 of method RedisDistributedLock in com.github.zuihou.cache.RedisAutoConfigure required a bean of type 'org.springframework.data.redis.core.RedisTemplate' that could not be found.
The following candidates were found but could not be injected:
- Bean method 'redisTemplate' in 'RedisAutoConfigure' not loaded because @ConditionalOnMissingBean (types: org.springframework.data.redis.core.RedisTemplate; SearchStrategy: all) found beans of type 'org.springframework.data.redis.core.RedisTemplate' redisTemplate, stringRedisTemplate
Action:
Consider revisiting the entries above or defining a bean of type 'org.springframework.data.redis.core.RedisTemplate' in your configuration.
The text was updated successfully, but these errors were encountered:
用了最新2.7.0
RedisAutoConfigure 67行去掉@ConditionalOnMissingBean 就没问题了
不去掉就会报错
APPLICATION FAILED TO START
Description:
Parameter 0 of method RedisDistributedLock in com.github.zuihou.cache.RedisAutoConfigure required a bean of type 'org.springframework.data.redis.core.RedisTemplate' that could not be found.
The following candidates were found but could not be injected:
- Bean method 'redisTemplate' in 'RedisAutoConfigure' not loaded because @ConditionalOnMissingBean (types: org.springframework.data.redis.core.RedisTemplate; SearchStrategy: all) found beans of type 'org.springframework.data.redis.core.RedisTemplate' redisTemplate, stringRedisTemplate
Action:
Consider revisiting the entries above or defining a bean of type 'org.springframework.data.redis.core.RedisTemplate' in your configuration.
The text was updated successfully, but these errors were encountered: