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

java -jar mall-coupons-server-0.0.1-SNAPSHOT.jar --spring.profiles.active=prod &运行失败 #14

Closed
xiaolei000129 opened this issue Apr 30, 2021 · 1 comment

Comments

@xiaolei000129
Copy link

com.huaan9527.mall.webapi.controller中构造函数的参数3。PublicController需要一个类型为'org.springframework.data.redis.core '的bean。RedisTemplate'无法找到。
找到了下列候选人,但无法注射:

  • 'RedisAutoConfiguration'中的Bean方法'redisTemplate'没有加载,因为@ConditionalOnMissingBean (names: redisTemplate;SearchStrategy: all)发现名为redisTemplate的bean
@silently9527
Copy link
Owner

把RedisTemplate的泛型去掉试试看可以不

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