SSM整合出现not found for dependency: expected at least 1 bean which qualifies as autowire错误

https://blog.csdn.net/grit_icpc/article/details/58141424

 

经过上网查资料发现出现这类错误的几个主要因素:

1.扫描包中没有扫描到所需要的类(或者没有扫描包)

2.serviceImpl类中出现死循环

3.没有在对应的类上加注解

4.service和serviceImpl没有放在同一个包下,导致spring扫描的时候没有扫描Impl包

Leave a Reply

Your email address will not be published. Required fields are marked *