netty冲突 play sbt_Scala的Play框架:编译错误[类型应用程序不是程序包控制器的成员]...

在尝试按照书中的Scala示例运行Play框架项目时,遇到编译错误:类型Application和Shop不是controllers包的成员。错误出现在路由文件中,指向了controllers.Application.index和controllers.Shop.catalog。尽管其他示例能正常运行,但这个特定项目在使用Play Framework 2.4.0、sbt 0.13.8和Scala 2.11.6的环境下无法编译。
摘要由CSDN通过智能技术生成

我尝试在书中编写一个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

[

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值