从2.3迁移到2.4后,我收到此错误。我应该使用什么是正确的导入声明?
error: value routesImport is not a member of object play.Play.autoImport.PlayKeys
PlayKeys.routesImport += "se.radley.plugin.salat.Binders._",
我有这些导入声明:
import sbt._
import Keys._
import play.Play.autoImport._
import PlayKeys._
import WebKeys._
答案 0 :(得分:7)
应该是这样的:
import play.sbt.routes.RoutesKeys
...
RoutesKeys.routesImport += "se.radley.plugin.salat.Binders._"