如果我尝试在我的文件中使用controllers.Default.redirect(to = "/foo/bar")
并在我的routes
文件中routesGenerator := InjectedRoutesGenerator
启用build.sbt
,我会收到编译错误
type Default is not a member of package controllers
有了 Play 2.4 中这个新的注入路由功能,是否还有一种方法可以使用静态对象中定义的处理程序?
如果我尝试在我的文件中使用controllers.Default.redirect(to = "/foo/bar")
并在我的routes
文件中routesGenerator := InjectedRoutesGenerator
启用build.sbt
,我会收到编译错误
type Default is not a member of package controllers
有了 Play 2.4 中这个新的注入路由功能,是否还有一种方法可以使用静态对象中定义的处理程序?