.. UserService] found for dependency: expected at least 1 bean which qualifies a

.. UserService] found for dependencyexpected at least 1 bean which qualifies as autowire candidate for this dependencyDependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} at org.

 

解决方案:

在serviceImpl 类上加注解

@Service()

你可能感兴趣的:(.. UserService] found for dependency: expected at least 1 bean which qualifies a)