Play 2.2.3 can not see file by Play.application().resource
问题 Play 2.2.3. Windows 7. public static Result menu() throws IOException { String path = Play.application().resource("resources/menu.json").toString(); String content = Files.toString(new File(path), Charsets.UTF_8); return ok(content).as("JSON"); } Got an error: ... scala-2.10\classes\resources\menu.json The filename, directory name, or volume label syntax is incorrect Checking that path in file-system, I'm able to find my file there: ..\target\scala-2.10\classes\resources\menu.json I'm able to