Play 2.4 value routesImport is not a member of object play.Play.autoImport.PlayKeys

荒凉一梦 提交于 2019-12-22 08:37:11

问题


I am getting this error after migrating to 2.4 from 2.3. What is the right import statement I should use?

error: value routesImport is not a member of object play.Play.autoImport.PlayKeys
    PlayKeys.routesImport += "se.radley.plugin.salat.Binders._",

I have these import statements:

import sbt._
import Keys._
import play.Play.autoImport._
import PlayKeys._
import WebKeys._

回答1:


Should be like this:

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


来源:https://stackoverflow.com/questions/33900153/play-2-4-value-routesimport-is-not-a-member-of-object-play-play-autoimport-playk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!