1 Answer
- Newest
- Most votes
- Most comments
0
Try to inject/autowire org.springframework.core.env.Environment & then access it like below,
@Autowired private Environment env; env.getProperty("ENV_VAR");
Hope this helps.
answered 2 years ago
Relevant content
- asked a year ago
- How do I mount an Amazon EFS volume to an application directory in an Elastic Beanstalk environment?AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago