This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to read .properties file in grails ?

 
Nazeer Ahammad
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

How to read .properties file which is in WEB-APP folder in grails ?

please help me....



Regards,
Nazeer
 
Pavel Sok
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

After that using DI you'll get in your grails application:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic