我需要向我的应用程序添加一些属性文件。我已将此文件添加到controller目录中,但无法加载它们(在类路径中没有?) -InputStream为空。这个文件放在哪里可以访问?
public class Application extends Controller {
    static {
        try {
            Properties p = new Properties();
            InputStream in =  Application.class.getClassLoader().getResourceAsStream("accounts.properties");
            if(in != null) {
                p.load(in);
                in.close();
            } else {
                error("null inputstream");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }       
    }
    // Actions below 
    // ...
}