All files placed in the conf/
folder are automatically added to your classpath. You should be able to access the your file like this:
Properties prop;
try {
prop = new Properties();
InputStream is = this.getClass().getResourceAsStream("test.properties");
prop.load(is);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
String name = prop.getProperty("name");
String framework = prop.getProperty("playframework");
Note: I haven't tested any of the above.
Update:
I've just realized that this question is a close duplicate of Load file from '/conf' directory on Cloudbees but since my solution also includes how to access the properties in the file, I'll leave it as is.
Also since your controller method will most likely be static the above might fail to compile. In the answer I referenced they suggested using the facility provided by Play!:
Play.application().resourceAsStream("test.properties")