No found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations:

后端 未结 13 865
时光说笑
时光说笑 2020-12-08 01:43

I am trying to write a SOAP service using Spring, however I receive a Dependency Injection issue. I\'m having problems using @Autowired through the Service like

13条回答
  •  余生分开走
    2020-12-08 02:05

    You seems to be missing implementation for interface UserDao. If you look at the exception closely it says

    No qualifying bean of type [edu.java.spring.ws.dao.UserDao] found for dependency:

    The way @Autowired works is that it would automatically look for implementation of a dependency you inject via an interface. In this case since there is no valid implementation of interface UserDao you get the error.Ensure you have a valid implementation for this class and your error should go.

    Hope that helps.

提交回复
热议问题