2

更改某些文件后,我的 Play 2.0 测试应用程序似乎没有自动重新加载。当我更改+保存文件时,控制台会显示[info] Compiling 1 Java source to /java/todolist/target/scala-2.9.1/classes...,但浏览器中的内容保持不变。Play 在开发模式下运行,并启用了自动重新加载。

控制台输出:

$ play run
[info] Loading project definition from /data/dev/java/todolist/project
[info] Set current project to todolist (in build file:/data/dev/java/todolist/)

--- (Running the application from SBT, auto-reloading is enabled) ---

[info] play - Listening for HTTP on port 9000...

(Server started, use Ctrl+D to stop and go back to the console...)

[info] play - Application started (Dev)
[info] Compiling 1 Java source to /data/dev/java/todolist/target/scala-2.9.1/classes...
4

1 回答 1

4

运行play clean并重新启动您的 Play 应用程序,Play 应该会在下次启动时自动重新加载文件。

于 2012-03-18T19:56:19.063 回答