I set a key inside my environment (in bash_profile file) called 'FLAG'(the value is 'true'). I'm trying to get his value by using annotation Value. so far i tried to do this:
@Value("\${FLAG}")
private lateinit var process_flag: String
but no success, I'm getting an error:
java.lang.IllegalArgumentException: Could not resolve placeholder 'FLAG' in string value "${FLAG}"
*should I add any import\annotation to the class?
.bash_profilefile was applied?