播放2.4值routesImport不是对象播放的成员.Play.autoImport.PlayKeys

时间:2015-11-24 17:31:04

标签: playframework-2.4

从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._

1 个答案:

答案 0 :(得分:7)

应该是这样的:

import play.sbt.routes.RoutesKeys
...
RoutesKeys.routesImport += "se.radley.plugin.salat.Binders._"