title: Environment variables with wildfly not working
body: <p>In my application launching I get some variables from env variables in app properties. </p>
  
  <p>It works fine with spring boot container. </p>
  
  <p>But when I launch the application with wildfly 10 <code>System.getenv</code> always return null. I set my env variables in run configuration in STS, also it doesn't work in openshift that run wildfly.</p>
  
  <p>Here is sample of my code:</p>
  
  <pre><code>String showSql = System.getenv("SHOW_SQL");
  
  if(value.contains(":")){
      int split = value.indexOf(":");
      List&lt;String&gt; s = new ArrayList&lt;String&gt;();
      s.add(value.substring(1, split)) ;
      s.add(value.substring(split+1, value.length()-1));
      // value.split(":");
  
      if(System.getenv(s.get(0)) != null){
          var = System.getenv(s.get(0));
      }else{
          var = s.get(1);
          var = var.replace(":", "");
      }                           
  }else{
      value = value.replace("{", "");
      value = value.replaceAll("}", "");
      var = System.getenv(value);
  }
  </code></pre>
  
  <p>Can any one help me?</p>