【发布时间】:2026-02-05 09:15:01
【问题描述】:
当使用activator test 运行时,如下所示的测试会按预期运行。从 Eclipse 运行时,Play 应用程序似乎正常启动,但从 run 方法中对 localhost:9000 的请求都导致 404。我错过了什么?
public void test() {
running(testServer(9000), new Runnable() {
public void run() {
...
}
});
}
【问题讨论】: