.. 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()

猜你喜欢

转载自hardworkbird.iteye.com/blog/2256229