How to read properties on Play Framework

Play framework recommends you use their default properties file for that, so make sure you add your properties to the conf/application.conf file.

To read the property:

// Do not import the play.api.* it is a total different class
import play.Configuration;
import play.Play;
//on your method:
Configuration conf = Play.application().configuration();
conf.getString("your.property");