-
Notifications
You must be signed in to change notification settings - Fork 40.5k
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
Autowire JavaMailSender with spring-boot-starter-mail not working? #2876
Comments
It works for me (I just tested with 1.2.3.RELEASE). Try looking at the public static void main(String[] args) {
SpringApplication.run(Gh2876Application.class, "--debug");
} If that doesn't help, please provide a sample project that illustrates the problem. |
Dear Andy,
my |
I am getting the same exception for my app while deploying it in PCF cloud. In local it is working fine. I have posted it on stack overflow but didn't get any answer. Your help would be appreciated. Thanks |
@arjun09 this issue is closed and Andy already answered that question (see #2876 (comment)) |
I have met the same problem when run app in tomcat
but run Application directly do not have this problem. Reason when run app in tomcat do not load this configuration class
Solution
Please see : https://www.mkyong.com/spring-boot/spring-boot-deploy-war-file-to-tomcat/ |
Hello,
trying to autowire
JavaMailSender
after adding:to my
POM.xml
, like so:but getting everytime:
No qualifying bean of type
org.springframework.mail.javamail.JavaMailSender
found for dependencyMy application contains also all properties needed (spring.mail.*)
Is there i'am doing wrong?
Greetings
Alex
The text was updated successfully, but these errors were encountered: