Create project from https://github.com/playframework/play-socket.io/tree/master/samples/scala/chat and get compilation error
overriding method applicationLifecycle in trait MyApplication of type => play.api.inject.DefaultApplicationLifecycle;
lazy value applicationLifecycle in class BuiltInComponentsFromContext of type play.api.inject.ApplicationLifecycle has incompatible type
Try with Play 2.6.23 and 2.7.2
Removing the following line from MyApplication
should make it work:
override def applicationLifecycle: DefaultApplicationLifecycle
Test it with
git clone https://github.com/playframework/play-socket.io.git
cd play-socket
play-socket.io/samples/scala/chat/app/modules/MyApplicationLoader.scala
sbt "scalaChat/run"
from the root project dir play-socket/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.