• 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