Spring abnormal summary

1.  Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.ha.service.UserService] found for dependency [com.imut.service.IUserService]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}

  Question: bean automatically injected failed,

  Solution: Check whether the class prompt increased @ Service, @ Component annotations, etc., and start scanning the packet path type or configuration file contains the path of the class.

Guess you like

Origin www.cnblogs.com/huanshilang/p/11685147.html