-
Notifications
You must be signed in to change notification settings - Fork 96
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
EmailService not recognised in@Autowired #7
Comments
Hi Daniel, Can you post the whole stacktrace? Moreover, which templating engine are you using (i.e. which of the provided modules)? Can you report the pom with the given dependencies? |
I am not using any template .. On Fri, Jul 1, 2016 at 9:08 PM, Roberto Trunfio notifications@github.com
Best regards Daniel Szasz |
|
I don't see any particular issue. It should be something wrong your configuration. I could try to help more, but you should post more code (e.g., the main application class). I also would like to see the pom dependencies (which version of the library are you using, essentially). |
Hi using the latest version : 0.3.2 springBootVersion = '1.3.5.RELEASE'
build.gradle
|
Hi Daniel, There are two issues. @SpringBootApplication
@ComponentScan(basePackages = {"com.test", "it.ozimov.springboot"})
@EnableAsync The readme wasn't updated after the last release, my bad. Second, I have to make the Thanks for reporting the issue |
Release 0.3.3 is now on Maven Central. |
Hi
I added
in the application class but when I still want to use the EmailService is not capable to Autowired it.
Here is the stack trace :
Caused by: 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)}
Thanks for any advice..
Daniel
The text was updated successfully, but these errors were encountered: