I'm trying to get acess costume environment variable that I just added to Elastic beanstalk. The way i added the variable is only in Software Configuration.
The variable is FLAG and the value is 'true'. In my code I'm doing this:
@Value("${FLAG}")
private Boolean flag1= true;
but I'm getting this error:
java.lang.IllegalArgumentException: Could not resolve placeholder 'FLAG' in string value "${FLAG}"
I'm working with java spring and AWS elastic beanstalk
Thank you