2
respostas

Não consigo chamar o repository com @Autowired

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'drinksController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private br.com.cdw.repository.DrinksRepository br.com.cdw.config.DrinksController.repository; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [br.com.cdw.repository.DrinksRepository] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency.

2 respostas

Já consegui resolver. Pode fechar o tópico. Obrigado

Bom dia Renato, que bom que deu certo ai! Pode colocar sua solução aqui? Assim outras pessoas podem consultar