打2.4 value routesImport is not member of object play.Play.autoImport.PlayKeys
Play 2.4 value routesImport is not a member of object play.Play.autoImport.PlayKeys
从 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._
应该是这样的:
import play.sbt.routes.RoutesKeys
...
RoutesKeys.routesImport += "se.radley.plugin.salat.Binders._"
从 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._
应该是这样的:
import play.sbt.routes.RoutesKeys
...
RoutesKeys.routesImport += "se.radley.plugin.salat.Binders._"