首页 > 解决方案 > 未找到操作 - 玩从 2.2 到 2.4 的迁移

问题描述

在运行 sbt 运行时:

sbt run -Dconfig.resource="modules/conf/application.conf" (我的application.conf文件在模块下。)

项目是一个多模块项目。

当我运行时http://localhost:9000,它给了我“找不到操作”错误。

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

如何解决这个问题?当我从 play 2.2 迁移到 2.6 时遇到了同样的错误,所以社区建议我逐步进行增量更新,所以我从 2.3 开始,现在我在 2.4 迁移,但问题仍然相同。请有人在这里帮助我。

标签: scalaplayframeworksbt

解决方案


推荐阅读