Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gateway启动出错 #39

Closed
zgcxyz183 opened this issue Nov 9, 2020 · 1 comment
Closed

gateway启动出错 #39

zgcxyz183 opened this issue Nov 9, 2020 · 1 comment

Comments

@zgcxyz183
Copy link

用了最新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.

@zuihou
Copy link
Collaborator

zuihou commented Nov 9, 2020

更新代码

@zuihou zuihou closed this as completed Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants