title: How to pass a parameter as an environment variable
body: <p>How do you pass a parameter as an environment variable?</p>
  <p>Step 1: Open up user bash file 'vim ~/.bash_profile', write the environment variable and save the file</p>
  <pre><code>export TWLIO_NUMBER=+303....
  </code></pre>
  <p>Step 2: In the application porperties file, store the variable</p>
  <pre><code>twlio_number=${TWLIO_NUMBER}
  </code></pre>
  <p>Step 3: Import Value in order to use it</p>
  <pre><code>  import org.springframework.beans.factory.annotation.Value;
  
    @Value(&quot;${twlio_number}&quot;)
    private String TWILIO_NUMBER;
  </code></pre>
  <p>Also, if I hardcode the value in the application properties file, the code works.</p>