Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to read .properties file in grails ?  RSS feed

 
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:

 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!