Spring Boot + Elastic Beanstalk .ebextensions in JAR

前端 未结 5 1910
遇见更好的自我
遇见更好的自我 2021-02-13 15:44

I have a very standard Spring Boot application (with a application.properties properties file located in standard /src/main/resources folder) which I\'

5条回答
  •  无人及你
    2021-02-13 16:16

    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
    

提交回复
热议问题