play framework读取文件

 try {
            File file = new File(new File(new File(Play.applicationPath, "conf"), "init"),
                    "aliww.txt");
            whitleListSet.addAll(FileUtils.readLines(file));
        } catch (IOException e2) {
            log.warn(e2.getMessage(), e2);
        }

  

posted @ 2012-11-12 20:49  程序员-初学者  阅读(409)  评论(0编辑  收藏  举报