播放:找不到动作

发布于 2025-02-02 03:14:56 字数 950 浏览 3 评论 0 原文

我正在尝试从浏览器访问 play 项目。

请求:

http:// localhost:9000/

响应:

Action Not Found

For request 'GET /'
These routes have been tried, in this order:

1 GET     /                 controllers.WidgetController.index()
2 GET     /widgets          controllers.WidgetController.widgets()

请求:

http:// localhost:9000/widgets

响应:

Action Not Found

For request 'GET /widgets'
These routes have been tried, in this order:

1 GET     /                 controllers.WidgetController.index()
2 GET     /widgets          controllers.WidgetController.widgets()

我尝试过 adding和删除拖尾斜线,但这无济于事。

我尝试 sbt clean project ,但这无济于事。

有什么想法在这里有什么问题?

I am trying to access a Play project from a browser.

Request:

http://localhost:9000/

Response:

Action Not Found

For request 'GET /'
These routes have been tried, in this order:

1 GET     /                 controllers.WidgetController.index()
2 GET     /widgets          controllers.WidgetController.widgets()

Request:

http://localhost:9000/widgets

Response:

Action Not Found

For request 'GET /widgets'
These routes have been tried, in this order:

1 GET     /                 controllers.WidgetController.index()
2 GET     /widgets          controllers.WidgetController.widgets()

I have tried adding and removing trailing slashes, but it did not help.

I have tried to sbt clean the project, but it did not help.

Any ideas what may be wrong here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文