Java 值不是对象控制器的成员。框架2.8

Java 值不是对象控制器的成员。框架2.8,java,playframework,Java,Playframework,我已经为play应用程序的演示创建了一个单独的路由文件和控制器。我正在使用java类。我提交表格时遇到了问题。我越来越 [error] /Users/natraj/test/ws/app/views/demo/login.scala.html:13:40: value DemoController is not a member of object controllers.routes [error] @helper.form(action = routes.DemoCon

我已经为play应用程序的演示创建了一个单独的路由文件和控制器。我正在使用java类。我提交表格时遇到了问题。我越来越

[error] /Users/natraj/test/ws/app/views/demo/login.scala.html:13:40: value  DemoController is not a member of object controllers.routes
[error]           @helper.form(action = routes.DemoController.submitLogin()) {
[error]                                        ^
[error] one error found
[error] (Compile / compileIncremental) Compilation failed
构建.sbt

name := """test"""

version := "1.0-SNAPSHOT"

lazy val root = (project in file(".")).enablePlugins(PlayJava)
lazy val demo = (project in file("modules/demo")).enablePlugins(PlayJava)

scalaVersion := "2.13.1"
使用播放版本2.8.0

项目结构

test
  |- app
  |  |- controllers
  |  |- demo.controllers
  |  |- views
  |  |- views.demo
我试着做以下事情

@helper.form(action = routes.DemoController.submitLogin())
@helper.form(action = routes.demo.controllers.DemoController.submitLogin())
@helper.form(action = routes.demo.DemoController.submitLogin())
@helper.form(action = demo.controllers.routes.DemoController.submitLogin())
@helper.form(action = demo.routes.DemoController.submitLogin())
让我看看我在这里错过了什么