昨天我在 Play 2.1.1 应用程序中遇到了一些路由问题,并删除了目标文件夹的内容以强制 Play 重新编译所有内容(可能是一个愚蠢的想法)。
现在我在 Eclipse 中遇到了一堆错误:
too many arguments for method apply: (name: String, constraint: String)play.core.DynamicPart in object DynamicPart routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 44 Scala Problem
too many arguments for method apply: (name: String, constraint: String)play.core.DynamicPart in object DynamicPart routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 40 Scala Problem
too many arguments for method apply: (name: String, constraint: String)play.core.DynamicPart in object DynamicPart routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 52 Scala Problem
too many arguments for method apply: (name: String, constraint: String)play.core.DynamicPart in object DynamicPart routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 48 Scala Problem
not found: value params routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 96 Scala Problem
not found: value params routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 88 Scala Problem
not found: value params routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 112 Scala Problem
not found: value params routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 104 Scala Problem
经过一些 google 和 stackoverflow 研究后,我尝试对play clean compile
项目执行 a 。这样可行。我也可以启动应用程序,它似乎工作正常。
清洁后,我尝试在 Eclipse 中进行刷新。这不会改变任何事情。错误不会消失。
有什么建议么?
谢谢!