A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
how to read .properties file in grails ?
Joined: Feb 26, 2012
Oct 23, 2013 04:41:44
How to read .properties file which is in WEB-APP folder in grails ?
please help me....
Joined: Nov 23, 2013
Nov 23, 2013 15:25:54
This is simple:
Let's assume you have a certain property file with one property: my.property="property"
You should specify your property file in Config.groovy
grails.config.locations = ["config_file_1.properties", "config_file_2.properties", ..]
After that using DI you'll get in your grails application:
def prop = grailsApplictaion.config['my.property']
subject: how to read .properties file in grails ?
Passing parameters to Quartz job
Reading properties from another properties file.
Grails 1.0 Web Application Development - TOC
Problem with multiple grails app on glassfish.
Read duplicate keys from properties file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014