You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARN 6496 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'simpleMimeEmailWithThymeleafApplication': Unsatisfied dependency expressed through field 'simpleThymeleafEmailService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'simpleThymeleafEmailService': Unsatisfied dependency expressed through field 'emailService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'it.ozimov.springboot.mail.service.EmailService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
The text was updated successfully, but these errors were encountered:
Hi,
Generally speaking, trying to understand what goes wrong without knowing the version that bring the error and without having a look at the configuration of the main class and at the application.properties it's really complex.
In this case, I would suggest to have a look at the examples folder. There is an example that shows you how to autowire the service been
The reason is that I forgot to add the @EnableEmailTools Annotation.
在 2017-04-05 20:05:04,"Roberto Trunfio" <notifications@github.com> 写道:
Hi,
Generally speaking, trying to understand what goes wrong without knowing the version that bring the error and without having a look at the configuration of the main class and at the application.properties it's really complex.
In this case, I would suggest to have a look at the examples folder. There is an example that shows you how to autowire the service been
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
WARN 6496 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'simpleMimeEmailWithThymeleafApplication': Unsatisfied dependency expressed through field 'simpleThymeleafEmailService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'simpleThymeleafEmailService': Unsatisfied dependency expressed through field 'emailService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'it.ozimov.springboot.mail.service.EmailService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
The text was updated successfully, but these errors were encountered: