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容器。(我就是监听漏了,汗...)


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM