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

RedisTemplate 启动项目报错啊 #6

Closed
commanding opened this issue Feb 4, 2021 · 2 comments
Closed

RedisTemplate 启动项目报错啊 #6

commanding opened this issue Feb 4, 2021 · 2 comments

Comments

@commanding
Copy link


APPLICATION FAILED TO START


Description:

Parameter 3 of constructor in com.huaan9527.mall.webapi.controller.PublicController 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 'RedisAutoConfiguration' not loaded because @ConditionalOnMissingBean (names: redisTemplate; SearchStrategy: all) found beans named redisTemplate

Action:

Consider revisiting the entries above or defining a bean of type 'org.springframework.data.redis.core.RedisTemplate' in your configuration.

Disconnected from the target VM, address: '127.0.0.1:65469', transport: 'socket'

@commanding
Copy link
Author

已解决

@jsrgqinbin
Copy link

怎么解决的,同样的报错

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