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

后端 未结 13 851
时光说笑
时光说笑 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:13

    We face this issue but had different reason, here is the reason:

    In our project found multiple bean entry with same bean name. 1 in applicationcontext.xml & 1 in dispatcherServlet.xml

    Example:

    
    
    

    & we are trying to autowired by dataService name.

    Solution: we changed the bean name & its solved.

提交回复
热议问题