posted 9 years ago
Hello. I have this method on my Controller for send email
XML config
This works fine and the email is send
The problem occurs when i create a service class and pass everything there.
The service Class
and i change my Controller like this
Then i cannot run the application because of this error
after some Hours i have removed @Autowire from the Service Class and i have try it again .Application loads correclty not like before but i have nullpointer Exception
I use Spring 3.2.3
and my pom.xml
Is this a problem of SimpleMailMessage mail ?
Why with Autowire does not workk if i move everything on My service Class.
I have also read spring docs and other but with no luck.
Any Help
thanks