当前位置:   article > 正文

【错误:A component required a bean of type ‘xxx‘ that could not be found.解决办法】_a component required a bean of type 'org.redisson.

a component required a bean of type 'org.redisson.api.redissonclient' that c

在学谷粒商城项目的时候出现了以下问题:

***************************

APPLICATION FAILED TO START

***************************

Description:

A component required a bean of type 'org.redisson.Redisson' that could not be found.

Action:

Consider defining a bean of type 'org.redisson.Redisson' in your configuration.

Process finished with exit code 1

组件需要一个类型为“org.redison.redisson”的bean,但找不到该bean。

原因:springboot启动时没扫描到我写的配置类

解决办法:在Application启动类上添加注解

@ComponentScan(basePackages = {"类所在的包名"})

参考文章:A component required a bean of type ‘XXX‘ that could not be found 解决办法_进阶的蚂蚱的博客-CSDN博客

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/125786
推荐阅读
相关标签
  

闽ICP备14008679号