I have a very standard Spring Boot application (with a application.properties
properties file located in standard /src/main/resources
folder) which I\'
The error message that you get is for javaMailSender property not found.
The resources path mentioned in your pom.xml overrides the default resources root path.
Hence JavaMailSender is looking for the jndi configuration or the mail properties under this new resources path and its not able to find it.. Hence the error.
spring.mail.jndi-name=mail/testmail
OR
spring.mail.host=testserver.com
spring.mail.port=25
spring.mail.username=test
spring.mail.password=test123
spring.mail.protocol=smtp
spring.mail.defaultEncoding=UTF-8
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.auth.mechanisms=NTLM
spring.mail.properties.mail.smtp.auth.ntlm.domain=DOMAIN
spring.mail.properties.mail.debug=true