不明白为什么这会在命令sbt run
我在
之前尝试了sbt clean
和sbt update
play.api.UnexpectedException: Unexpected exception[ApplicationException: Error parsing: /api/details]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anon
fun$1.apply(ApplicationProvider.scala:166) ~[play_2.11-2.3.7.jar:2.3.7]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anon
fun$1.apply(ApplicationProvider.scala:130) ~[play_2.11-2.3.7.jar:2.3.7]
at scala.Option.map(Option.scala:146) ~[scala-library-2.11.5.jar:na]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply
(ApplicationProvider.scala:130) ~[play_2.11-2.3.7.jar:2.3.7]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply
(ApplicationProvider.scala:128) ~[play_2.11-2.3.7.jar:2.3.7]
Caused by: core.exceptions.ApplicationException: Error parsing: /api/details
at rest.Details$$anonfun$request$1.apply(Details.scala:62) ~[na:na]
at rest.Details$$anonfun$request$1.apply(Details.scala:60) ~[na:na]
at scala.util.Success$$anonfun$map$1.apply(Try.scala:236) ~[scala-librar
y-2.11.5.jar:na]
at scala.util.Try$.apply(Try.scala:191) ~[scala-library-2.11.5.jar:na]
at scala.util.Success.map(Try.scala:236) ~[scala-library-2.11.5.jar:na]
答案 0 :(得分:0)
您需要提供有关问题背景的更多详细信息,但您的 config / routes 文件中似乎有问题。
您可以在此处找到有关Playframework路由的一些文档:https://www.playframework.com/documentation/2.4.x/ScalaRouting