when i am starting as springboot application on eclipse it is working fine but when i am running th
when i am starting my springboot project as springboot application on eclipse it is working fine but when i am running the jar file on cmd it is showing the mailstrap error.
( Error processing condition on org.springframework.boot.autoconfigure.mail.MailSenderAutoConfiguration
2024-11-24T20:39:24.197+05:30 INFO 10344 --- [smartcontactmanager2.0] [ main] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-11-24T20:39:24.236+05:30 ERROR 10344 --- [smartcontactmanager2.0] [ main] o.s.boot.SpringApplication : Application run failed)
basically Spring Boot cannot resolve the placeholder "${EMAIL_HOST}". but i have set this on my environment variable. can anybody help me how to resolve this problem?
4 Replies
⌛
This post has been reserved for your question.
Hey @Shreya! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
It seems like your configuration requires an EMAIL_HOST environment variable
I guess that's just set in your run configuration in Eclipse
so you probably just want to set that environment variable before running it via cmd as well
how exactly are you running it on cmd
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.