expected at least 1 bean which qualifies as autowire candidate for this depe (spring无法注入)

Posted 随风而去

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了expected at least 1 bean which qualifies as autowire candidate for this depe (spring无法注入)相关的知识,希望对你有一定的参考价值。

    1.查看接口实现类是否加入注解,如service、repository等。

    2.查看spring配置文件是否自动扫描包

       <context:component-scan base-package="xxx.xx.xxx">

   3.查看是否在web.xml中加载spring容器。(我就是监听漏了,汗...)

以上是关于expected at least 1 bean which qualifies as autowire candidate for this depe (spring无法注入)的主要内容,如果未能解决你的问题,请参考以下文章

解决报错Too few arguments to function thinkValidate::is(), 1 passed and at least 2 expected

解决invalid record found in VCF4 file (at least 8 tab-delimited fields expected)问题

RuntimeError: Expected all tensors to be on the same device, but found at least two devices

卡在 Collab RuntimeError: Expected all tensors to be on the same device, but found at least two device

在springboot启动报错:No qualifying bean of type 'javax.sql.DataSource' available: expected at lea

747. Largest Number At Least Twice of Others