Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No qualifying bean of type [it.ozimov.springboot.templating.mail.service.EmailService] #9

Closed
foxundermoon opened this issue Jul 8, 2016 · 1 comment
Assignees

Comments

@foxundermoon
Copy link

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: it.ozimov.springboot.templating.mail.service.EmailService com.getui.logful.web.actuate.check.LogfulApiCheckScheduledTasks.emailService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [it.ozimov.springboot.templating.mail.service.EmailService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement
@robertotru robertotru self-assigned this Jul 8, 2016
@robertotru
Copy link
Member

@foxundermoon generally speaking, is pretty hard to provide help without knowing basic stuff like the version being used of SpringBootEmailTools and the one of Spring Boot, the annotations on the Spring Boot main application class, the class in which you try to use the EmailService.

Anyway, since this autowiring issue is becoming recurrent, I added a working example under the folder examples/autowiring-email-service-example.

Have fun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants