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 4 years ago
Relevant content
- asked 3 years ago
