title: Grails: Initialize variable using Configuration file
body: <p>I just wanted to know that is it possible to set the value of a variable in Grails controller from the configuration file like config.groovy or some other configuration file? </p>
  
  <p>For instance , my controller is as follows:</p>
  
  <pre><code>class WebsiteController {
      def show(){
          String user_name = "value to be fetched from configuration file"
      }
  }
  </code></pre>
  
  <p>Here, I want to set the value of user_name from the configuration file. I have no idea how to do this.
  I have been given this requirement by my senior. I searched online but couldn't find anything relevant. If it is possible, please tell me the approach. 
  Thanks</p>