我尝试在书中编写一个scala示例:“Play for Scala”,但在Play控制台上收到以下编译错误:
C:\Play\exp\ch6_implicits>activator run
[info] Loading project definition from C:\Play\exp\ch6_implicits\project
[info] Set current project to ch6_implicits (in build file:/C:/Play/exp/ch6_implicits/)
--- (Running the application, auto-reloading is enabled) ---
[info] p.a.l.c.ActorSystemProvider - Starting application default Akka system: application
[info] p.c.s.NettyServer$ - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Ctrl+D to stop and go back to the console...)
[info] Compiling 13 Scala sources and 1 Java source to C:\Play\exp\ch6_implicits\target\scala-2.11\classes...
[error] C:\Play\exp\ch6_implicits\conf\routes:6: type Application is not a member of package controllers
[error] GET / controllers.Application.index
[error] C:\Play\exp\ch6_implicits\conf\routes:7: type Shop is not a member of package controllers
[error] GET /catalog controllers.Shop.catalog
[error] C:\Play\exp\ch6_implicits\conf\routes:6: type Application is not a member of package controllers
[error] GET / controllers.Application.index
[error] C:\Play\exp\ch6_implicits\conf\routes:7: type Shop is not a member of package controllers
[error] GET /catalog controllers.Shop.catalog
[